org.jnetstream.capture.file.nap
Interface NapInput
- All Superinterfaces:
- Capture<NAPPacket>, java.io.Closeable, InputCapture<NAPPacket>, java.lang.Iterable<NAPPacket>
public interface NapInput
- extends InputCapture<NAPPacket>
A stream formatted to comform to Nap file format.
- Author:
- Mark Bednarczyk, Sly Technologies, Inc.
getPacketIterator
InputIterator<NAPPacket> getPacketIterator()
throws java.io.IOException
- An interator which iterates over Nap packets within the stream.
- Specified by:
getPacketIterator in interface Capture<NAPPacket>- Specified by:
getPacketIterator in interface InputCapture<NAPPacket>
- Returns:
- Iterator capable of throwing IO exceptions
- Throws:
java.io.IOException - Any IO errors while retrieving a packet
getRecordIterator
InputIterator<? extends NAPRecord> getRecordIterator()
throws java.io.IOException
- An iterator which iterates over Nap records within the stream.
- Specified by:
getRecordIterator in interface InputCapture<NAPPacket>
- Returns:
- iterator of record
- Throws:
java.io.IOException - any IO errors
getRawIterator
InputIterator<java.nio.ByteBuffer> getRawIterator()
throws java.io.IOException
- An iterator which iterates over Nap records within the stream and returns
them as raw ByteBuffers. The limit and position properties within the
returned ByteBuffer mark the beginning and end of the record.
- Specified by:
getRawIterator in interface InputCapture<NAPPacket>
- Returns:
- iterator of raw record contents in ByteBuffers
- Throws:
java.io.IOException - any IO errors