y.io.gml
Class DefaultEncoderFactory

java.lang.Object
  |
  +--y.io.gml.DefaultEncoderFactory
All Implemented Interfaces:
EncoderFactory

public class DefaultEncoderFactory
extends Object
implements EncoderFactory

This class is an implementation of the EncoderFactory interface. This implementation is capable of encoding the basic gml features. It makes use of instances of GmlObjectEncoder, GraphObjectEncoder, EdgeObjectEncoder and NodeObjectEncoder


Constructor Summary
DefaultEncoderFactory()
           
 
Method Summary
 ObjectEncoder createEdgeEncoder(ObjectEncoder graphEncoder)
          create an encoder that is capable of encoding an edge
 ObjectEncoder createGMLEncoder()
          return an Encoder, that is capable of writing the gml header
 ObjectEncoder createGraphEncoder(ObjectEncoder gmlEncoder)
          create an encoder that is capable of encoding a graph
 ObjectEncoder createNodeEncoder(ObjectEncoder graphEncoder)
          create an encoder that is capable of encoding a node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEncoderFactory

public DefaultEncoderFactory()
Method Detail

createEdgeEncoder

public ObjectEncoder createEdgeEncoder(ObjectEncoder graphEncoder)
Description copied from interface: EncoderFactory
create an encoder that is capable of encoding an edge

Specified by:
createEdgeEncoder in interface EncoderFactory
Parameters:
graphEncoder - the parent encoder
Returns:
an encoder

createGMLEncoder

public ObjectEncoder createGMLEncoder()
Description copied from interface: EncoderFactory
return an Encoder, that is capable of writing the gml header

Specified by:
createGMLEncoder in interface EncoderFactory
Returns:
an encoder

createGraphEncoder

public ObjectEncoder createGraphEncoder(ObjectEncoder gmlEncoder)
Description copied from interface: EncoderFactory
create an encoder that is capable of encoding a graph

Specified by:
createGraphEncoder in interface EncoderFactory
Parameters:
gmlEncoder - an encoder
Returns:
the parent encoder

createNodeEncoder

public ObjectEncoder createNodeEncoder(ObjectEncoder graphEncoder)
Description copied from interface: EncoderFactory
create an encoder that is capable of encoding a node

Specified by:
createNodeEncoder in interface EncoderFactory
Parameters:
graphEncoder - the parent encoder
Returns:
an encoder

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

2003