Search this API

y.io.gml
Interface ObjectEncoder

All Known Implementing Classes:
EdgeLabelGraphicsEncoder, EdgeObjectEncoder, EdgeRealizerObjectEncoder, GmlObjectEncoder, GraphObjectEncoder, HierarchicGraphObjectEncoder, HierarchyEdgeObjectEncoder, HierarchyNodeObjectEncoder, InterEdgeEncoder, LabelGraphicsEncoder, NodeLabelGraphicsEncoder, 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(java.lang.Object item, GMLEncoder encoder)
          This method will try to encode the given object using the GMLEncoder
 

Method Detail

encode

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

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

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