step.encoding
Class EncoderFactory

java.lang.Object
  |
  +--step.encoding.EncoderFactory

public class EncoderFactory
extends Object


Constructor Summary
EncoderFactory()
           
 
Method Summary
 Encoder getEncoder(String name)
           
 Encoder newEncoder(String name, Type valueType)
          Create a new encoder using the default definition for the given type.
 Encoder newEncoder(String name, TypeDef valueTypeDef)
          Create a new encoder for the given type definition.
 Encoder newEncoder(String name, TypeDef typeDef, List attributes)
          Create a new encoder for the given type definition with the given attributes.
 Encoder newEncoder(String name, Type valueType, List attributes)
          Create a new encoder using the default definition for the given type.
 Encoder newRecordEncoder(String name)
          Create a "universal" record encoder, capable of encoding all STEP records.
 void queueEvent(EncoderEvent event)
          If the target exists, apply the event immediately, otherwise queue the event until the target encoder is created by this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncoderFactory

public EncoderFactory()
Method Detail

newRecordEncoder

public Encoder newRecordEncoder(String name)
Create a "universal" record encoder, capable of encoding all STEP records.


newEncoder

public Encoder newEncoder(String name,
                          Type valueType)
Create a new encoder using the default definition for the given type.

See Also:
TypeDef.getDefault(Type)

newEncoder

public Encoder newEncoder(String name,
                          TypeDef valueTypeDef)
Create a new encoder for the given type definition.


newEncoder

public Encoder newEncoder(String name,
                          Type valueType,
                          List attributes)
Create a new encoder using the default definition for the given type.

See Also:
TypeDef.getDefault(Type)

newEncoder

public Encoder newEncoder(String name,
                          TypeDef typeDef,
                          List attributes)
Create a new encoder for the given type definition with the given attributes.

Throws:
IllegalArgumentException - if the given type definition cannot be handled by this factory.

queueEvent

public void queueEvent(EncoderEvent event)
If the target exists, apply the event immediately, otherwise queue the event until the target encoder is created by this factory.


getEncoder

public Encoder getEncoder(String name)