org.openfast.template.type.codec
Class UnsignedInteger

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.UnsignedInteger
All Implemented Interfaces:
java.io.Serializable

public final class UnsignedInteger
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)
           
 byte[] encodeValue(ScalarValue scalarValue)
          Takes a ScalarValue object, and converts it to a byte array
 boolean equals(java.lang.Object obj)
           
 
Methods inherited from class org.openfast.template.type.codec.IntegerCodec
createValue, getSignedIntegerSize, getUnsignedIntegerSize
 
Methods inherited from class org.openfast.template.type.codec.TypeCodec
encode, isNullable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encodeValue

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

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

decode

public ScalarValue decode(java.io.InputStream in)
Specified by:
decode in class TypeCodec
Parameters:
in - The InputStream to be decoded
Returns:
the decoded value from the fast input stream

equals

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


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