|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.voytechs.jnetstream.io.meta.CaptureMetaEnumerator
public class CaptureMetaEnumerator
This is a support object to help enumerate META data received
from parsing Capture files using NPL parser such as RawformatInputStream.
This object returns one (1) META value at a time following the Enumeration interface.
Use methods add() to add META values and use nextElement() to retrieve the front META value.
Values are added and retrieved on FIFO model (First in First out).
| Constructor Summary | |
|---|---|
CaptureMetaEnumerator()
|
|
| Method Summary | |
|---|---|
void |
add(Field data)
Adds new META data in form of a Field to the FIFO queue. |
void |
add(Header metaFields)
Adds meta information to the FIFO queue. |
void |
add(Packet metaFields)
Adds meta information to the FIFO queue. |
boolean |
hasMoreElements()
Returns true of there are more META values to be returned. |
static void |
main(java.lang.String[] args)
Test function for CaptureMetaEnumerator |
java.lang.Object |
nextElement()
Returns the next META value. |
MetaValue |
nextMetaValue()
A conveniece function, not part of Enumeration API, which type casts to MetaValue instead of returning Object. |
void |
removeAll()
Drains the FIFO queue to empty. |
java.lang.String |
toString()
Returns the String representation of all the META values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CaptureMetaEnumerator()
-
| Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumerationpublic java.lang.Object nextElement()
nextElement in interface java.util.Enumerationpublic MetaValue nextMetaValue()
nextElement()public void add(Field data)
data - Adds a Field element to the meta data FIFO queue.Fieldpublic void add(Header metaFields)
metaFields - Header from which to extract META values, one (1) for each Field
within the Header. Fields are extracted in suquencial order.Field,
Headerpublic void add(Packet metaFields)
metaFields - Packet from which to extract META values, one (1) for each Field
within the Packet. Fields are extracted in suquencial order.Field,
Packetpublic void removeAll()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
args - command line arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||