org.openfast.template.type.codec
Class NullableSignedInteger

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

public final class NullableSignedInteger
extends IntegerCodec

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

Method Detail

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

decode

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

Specified by:
decode in class TypeCodec
Parameters:
in - The InputStream to be decoded
Returns:
Returns a new numericValue object

isNullable

public boolean isNullable()
Overrides:
isNullable in class TypeCodec
Returns:
Returns true

equals

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


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