yext.graphml.graph2D
Class SerializableConverter

java.lang.Object
  extended byyext.graphml.graph2D.SerializableConverter
All Implemented Interfaces:
GraphMLParseContext.ResourceDecoder, GraphMLWriteContext.ResourceEncoder

public class SerializableConverter
extends Object
implements GraphMLParseContext.ResourceDecoder, GraphMLWriteContext.ResourceEncoder

Implementation of the GraphMLParseContext.ResourceDecoder and GraphMLWriteContext.ResourceEncoder interfaces that (de)serialize Serializable instances to/from embedded Base64 encoded blocks.


Constructor Summary
SerializableConverter()
           
 
Method Summary
 Object decode(Node codeNode, GraphMLParseContext context)
          Read a representation of an object that is stored in node.
 void encode(Object o, XmlWriter xmlWriter, GraphMLWriteContext context)
          Write a representation of the object o to the output writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableConverter

public SerializableConverter()
Method Detail

decode

public Object decode(Node codeNode,
                     GraphMLParseContext context)
Description copied from interface: GraphMLParseContext.ResourceDecoder
Read a representation of an object that is stored in node.

Specified by:
decode in interface GraphMLParseContext.ResourceDecoder
Parameters:
codeNode - the DOM node that represents the object
context - the current parse context
Returns:
the deserialized object

encode

public void encode(Object o,
                   XmlWriter xmlWriter,
                   GraphMLWriteContext context)
Description copied from interface: GraphMLWriteContext.ResourceEncoder
Write a representation of the object o to the output writer.

Specified by:
encode in interface GraphMLWriteContext.ResourceEncoder
Parameters:
o - the object which should be written
xmlWriter - the output target
context - the current write state, for further information


Copyright ©2000-2008, yWorks GmbH. All rights reserved.