|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.FudgeFieldPrefixCodec
public final class FudgeFieldPrefixCodec
Utility to manage the one byte field prefix.
This class is a static utility with no shared state.
Method Summary | |
---|---|
static int |
composeFieldPrefix(boolean fixedWidth,
int varDataSize,
boolean hasOrdinal,
boolean hasName)
Creates a Fudge field prefix byte. |
static int |
getFieldWidthByteCount(int fieldPrefix)
Returns the length of the field width indicator. |
static boolean |
hasName(int fieldPrefix)
Tests if the field name present flag is set. |
static boolean |
hasOrdinal(int fieldPrefix)
Tests if the ordinal value present flag is set. |
static boolean |
isFixedWidth(int fieldPrefix)
Tests if the fixed width flag is set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isFixedWidth(int fieldPrefix)
fieldPrefix
- the field prefix byte from the field header
true
if the fixed width flag is set, false
otherwisepublic static boolean hasOrdinal(int fieldPrefix)
fieldPrefix
- the field prefix byte from the field header
true
if the ordinal present flag is set, false
otherwisepublic static boolean hasName(int fieldPrefix)
fieldPrefix
- the field prefix byte from the field header
true
if the name present flag is set, false
otherwisepublic static int getFieldWidthByteCount(int fieldPrefix)
fieldPrefix
- the field prefix byte from the field header
public static int composeFieldPrefix(boolean fixedWidth, int varDataSize, boolean hasOrdinal, boolean hasName)
fixedWidth
- true
if the field type defines the width of the data to follow, false
for variable widthvarDataSize
- the number of bytes of field data - ignored if fixedWidth
is truehasOrdinal
- true
if the field header will include an ordinal, false
otherwisehasName
- true
if the field header will include a field name, false
otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |