SSF.OS.NetFlow.Filter
Class Decoder

java.lang.Object
  |
  +--SSF.OS.NetFlow.Filter.Decoder
Direct Known Subclasses:
IpNetFlowDecoder

public abstract class Decoder
extends java.lang.Object

Decoder base class for all kinds of data records connected using monitors.


Field Summary
static byte BYTE_TYPE
           
static int FIELD_NOT_FOUND
           
static byte FLOAT_TYPE
           
static byte INT_TYPE
           
static byte IP_TYPE
           
static byte LONG_TYPE
           
static byte SHORT_TYPE
           
static byte STRING_TYPE
           
 
Constructor Summary
Decoder()
           
 
Method Summary
abstract  int getFieldIndex(java.lang.String fieldName, byte fieldType)
          The fieldType is also passed in so that the decoder can check whether the fieldType matches the one that is retrieved by fieldName.
protected  void reportMismatch(java.lang.String fieldName, byte fieldType)
          report the mismatch of fieldTyps and the type of requested field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_NOT_FOUND

public static final int FIELD_NOT_FOUND
See Also:
Constant Field Values

INT_TYPE

public static final byte INT_TYPE
See Also:
Constant Field Values

SHORT_TYPE

public static final byte SHORT_TYPE
See Also:
Constant Field Values

BYTE_TYPE

public static final byte BYTE_TYPE
See Also:
Constant Field Values

FLOAT_TYPE

public static final byte FLOAT_TYPE
See Also:
Constant Field Values

STRING_TYPE

public static final byte STRING_TYPE
See Also:
Constant Field Values

IP_TYPE

public static final byte IP_TYPE
See Also:
Constant Field Values

LONG_TYPE

public static final byte LONG_TYPE
See Also:
Constant Field Values
Constructor Detail

Decoder

public Decoder()
Method Detail

getFieldIndex

public abstract int getFieldIndex(java.lang.String fieldName,
                                  byte fieldType)
The fieldType is also passed in so that the decoder can check whether the fieldType matches the one that is retrieved by fieldName.


reportMismatch

protected void reportMismatch(java.lang.String fieldName,
                              byte fieldType)
report the mismatch of fieldTyps and the type of requested field.