y.io.gml
Interface ObjectEncoder

All Known Implementing Classes:
EdgeObjectEncoder, EdgeRealizerObjectEncoder, GmlObjectEncoder, GraphObjectEncoder, HierarchicGraphObjectEncoder, HierarchyEdgeObjectEncoder, HierarchyNodeObjectEncoder, InterEdgeEncoder, LabelGraphicsEncoder, NodeObjectEncoder, NodeRealizerObjectEncoder

public interface ObjectEncoder

This Interface is implemented by classes that can encode certain object instances into a GML Stream using the GMLEncoder class


Method Summary
 void encode(Object item, GMLEncoder encoder)
          This method will try to encode the given object using the GMLEncoder
 

Method Detail

encode

public void encode(Object item,
                   GMLEncoder encoder)
            throws IOException
This method will try to encode the given object using the GMLEncoder

Throws:
IOException - in the case of an I/O exception
Parameters:
item - the object to be encoded
encoder - an encoder

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

2003