|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.UnknownFudgeFieldValue
public class UnknownFudgeFieldValue
A container to store a variable-sized field with a type that the current installation of Fudge cannot handle on decoding.
In general, while Fudge supports an infinite number of UnknownFudgeFieldType
instances with a particular type ID, it is optimal to use the factory method
FudgeTypeDictionary.getUnknownType(int)
to obtain one for a particular
context, which is what the Fudge decoding routines will do.
This class holds a mutable byte array but is unmodifiable.
Constructor Summary | |
---|---|
UnknownFudgeFieldValue(byte[] contents,
UnknownFudgeFieldType type)
Creates a new instance to represent a block of data in an unknown type. |
Method Summary | |
---|---|
byte[] |
getContents()
Gets the raw contents of the original data. |
UnknownFudgeFieldType |
getType()
Gets the UnknownFudgeFieldType definition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnknownFudgeFieldValue(byte[] contents, UnknownFudgeFieldType type)
contents
- the raw contents from the Fudge message stream, not nulltype
- the field type for the unknown type, not nullMethod Detail |
---|
public byte[] getContents()
public UnknownFudgeFieldType getType()
UnknownFudgeFieldType
definition.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |