org.openfast.template.type.codec
Class NotStopBitEncodedTypeCodec

java.lang.Object
  extended by org.openfast.template.type.codec.TypeCodec
      extended by org.openfast.template.type.codec.NotStopBitEncodedTypeCodec
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NullableByteVector

public abstract class NotStopBitEncodedTypeCodec
extends TypeCodec

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openfast.template.type.codec.TypeCodec
ASCII, BIT_VECTOR, BYTE_VECTOR, DATE_INTEGER, DATE_STRING, EPOCH_TIMESTAMP, INTEGER, NULLABLE_ASCII, NULLABLE_BYTE_VECTOR_TYPE, NULLABLE_INTEGER, NULLABLE_SF_SCALED_NUMBER, NULLABLE_STRING_DELTA, NULLABLE_UNICODE, NULLABLE_UNSIGNED_INTEGER, SF_SCALED_NUMBER, STOP_BIT, STRING_DELTA, TIME_IN_MS, TIME_INTEGER, TIME_STRING, TIMESTAMP_INTEGER, TIMESTAMP_STRING, UINT, UNICODE
 
Constructor Summary
NotStopBitEncodedTypeCodec()
           
 
Method Summary
 byte[] encode(ScalarValue value)
          Template Method to encode the passed object, the actual encoding is done in the encodeValue() method overridden in sub-classes.
 boolean equals(java.lang.Object obj)
           
 
Methods inherited from class org.openfast.template.type.codec.TypeCodec
decode, encodeValue, isNullable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotStopBitEncodedTypeCodec

public NotStopBitEncodedTypeCodec()
Method Detail

encode

public byte[] encode(ScalarValue value)
Description copied from class: TypeCodec
Template Method to encode the passed object, the actual encoding is done in the encodeValue() method overridden in sub-classes.

Note: The final SBIT is set in this method, not in encodeValue().

Overrides:
encode in class TypeCodec
Parameters:
value - The ScalarValue object to be encoded
Returns:
Returns an encoded byte array with an added stop bit at the end

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2006-2008 The LaSalle Technology Group, LLC. All Rights Reserved.