org.openfast.template.type.codec
Class NullableByteVector

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

public class NullableByteVector
extends NotStopBitEncodedTypeCodec

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
NullableByteVector()
           
 
Method Summary
 ScalarValue decode(java.io.InputStream in)
          Reads in a stream of data and stores it to a ByteVectorValue object
 byte[] encodeValue(ScalarValue value)
          Takes a ScalarValue object, and converts it to a byte array
 boolean equals(java.lang.Object obj)
           
 ScalarValue fromString(java.lang.String value)
           
 ScalarValue getDefaultValue()
           
 
Methods inherited from class org.openfast.template.type.codec.NotStopBitEncodedTypeCodec
encode
 
Methods inherited from class org.openfast.template.type.codec.TypeCodec
isNullable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullableByteVector

public NullableByteVector()
Method Detail

decode

public ScalarValue decode(java.io.InputStream in)
Reads in a stream of data and stores it to a ByteVectorValue object

Specified by:
decode in class TypeCodec
Parameters:
in - The InputStream to be decoded
Returns:
Returns a new ByteVectorValue object with the data stream as an array

encodeValue

public byte[] encodeValue(ScalarValue value)
Takes a ScalarValue object, and converts it to a byte array

Specified by:
encodeValue in class TypeCodec
Parameters:
value - The ScalarValue to be encoded
Returns:
Returns a byte array of the passed object

getDefaultValue

public ScalarValue getDefaultValue()
Returns:
Returns a default ByteVectorValue object

fromString

public ScalarValue fromString(java.lang.String value)
Returns:
Returns a new ByteVectorValue object with the passed value

equals

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


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