org.openfast.template.type.codec
Class NullableStringDelta
java.lang.Object
org.openfast.template.type.codec.TypeCodec
org.openfast.template.type.codec.NullableStringDelta
- All Implemented Interfaces:
- java.io.Serializable
public class NullableStringDelta
- extends TypeCodec
- See Also:
- Serialized Form
| 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 |
| 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 |
NullableStringDelta
public NullableStringDelta()
decode
public ScalarValue decode(java.io.InputStream in)
- Reads in a stream of data and stores it to a TwinValue object
- Specified by:
decode in class TypeCodec
- Parameters:
in - The InputStream to be decoded
- Returns:
- Returns a new TwinValue object with the data as its parameters
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 new StringValue object with a defualt value
fromString
public ScalarValue fromString(java.lang.String value)
- Parameters:
value - Passed value to the new StringValue object
- Returns:
- Returns a new StringValue object with the passed value
isNullable
public boolean isNullable()
- Overrides:
isNullable in class TypeCodec
- Returns:
- Returns true
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.