y.io.gml
Class HierarchyNodeObjectEncoder
java.lang.Object
y.io.gml.HierarchyNodeObjectEncoder
- All Implemented Interfaces:
- ObjectEncoder
public class HierarchyNodeObjectEncoder
- extends java.lang.Object
- implements ObjectEncoder
This class is capable of encoding a node of a Hierarchic Graph in valid gml format.
It is used by HierarchicGraphEncoderFactory.
-
-
Method Summary |
void |
encode(java.lang.Object item,
GMLEncoder enc)
This method will try to encode the given object using the GMLEncoder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HierarchyNodeObjectEncoder
public HierarchyNodeObjectEncoder(HierarchicGraphObjectEncoder parent,
HierarchicGraphEncoderFactory factory)
HierarchyNodeObjectEncoder
public HierarchyNodeObjectEncoder(ObjectEncoder nodeEncoder,
HierarchicGraphObjectEncoder parent,
HierarchicGraphEncoderFactory factory)
encode
public void encode(java.lang.Object item,
GMLEncoder enc)
throws java.io.IOException
- Description copied from interface:
ObjectEncoder
- This method will try to encode the given object using the GMLEncoder
- Specified by:
encode
in interface ObjectEncoder
- Parameters:
item
- the object to be encodedenc
- an encoder
- Throws:
java.io.IOException
- in the case of an I/O exception