yext.graphml.graph2D
Class SerializableConverter
java.lang.Object
yext.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializableConverter
public SerializableConverter()
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 objectcontext - 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 writtenxmlWriter - the output targetcontext - the current write state, for further information
Copyright ©2000-2008, yWorks GmbH. All rights reserved.