org.jnetstream.packet
Interface Field<T>

All Superinterfaces:
HeaderElement, java.lang.Iterable<Field<?>>, com.slytechs.utils.namespace.Named
All Known Subinterfaces:
Field.DynamicField<T>, Field.StaticField, FiniteField<T>
All Known Implementing Classes:
NullField

public interface Field<T>
extends HeaderElement, java.lang.Iterable<Field<?>>

A field within a packet after its been decoded. A field is an element of a header structures.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
static interface Field.DynamicField<T>
           
static interface Field.StaticField
           
 
Nested classes/interfaces inherited from interface com.slytechs.utils.namespace.Named
com.slytechs.utils.namespace.Named.Util
 
Method Summary
 java.lang.Object format()
           
 Field<?>[] getAllFields()
           
 int getLength()
           
 int getOffset()
           
 T getValue()
           
 java.lang.String getValueDescription()
           
 T getValueInUnits()
           
 java.lang.String getValueUnits()
           
 boolean isSigned()
           
 
Methods inherited from interface org.jnetstream.packet.HeaderElement
getFieldConstant
 
Methods inherited from interface com.slytechs.utils.namespace.Named
getName
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

isSigned

boolean isSigned()

getOffset

int getOffset()

getLength

int getLength()

getValue

T getValue()
           throws java.io.IOException
Returns:
Throws:
java.io.IOException

getValueDescription

java.lang.String getValueDescription()
Returns:

format

java.lang.Object format()
Returns:

getValueUnits

java.lang.String getValueUnits()
Returns:

getValueInUnits

T getValueInUnits()
                  throws java.io.IOException
Returns:
Throws:
java.io.IOException

getAllFields

Field<?>[] getAllFields()
Returns: