|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
com.voytechs.jnetstream.io.ProtocolDataInputStream
com.voytechs.jnetstream.io.PacketInputStream
com.voytechs.jnetstream.io.PacketBuffer
public class PacketBuffer
Converts a MarkerBuffer into a PacketInputStream so it can be used in conjunction with the decoder.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.voytechs.jnetstream.io.PacketInputStream |
|---|
PacketInputStream.BufferedHeader |
| Field Summary |
|---|
| Fields inherited from class com.voytechs.jnetstream.io.PacketInputStream |
|---|
captureDeviceArch, captureDeviceFilename, captureDeviceIp, captureDeviceOS, captureLive, debugHeaders, fileHeader, linkType, packetCaptureTimestamp, packetEnd, packetLength, packetSnaplen, packetStart, recordEnd, recordHeader, recordLength, recordStart, stackIn |
| Fields inherited from class com.voytechs.jnetstream.io.ProtocolDataInputStream |
|---|
bitsLeft, in |
| Constructor Summary | |
|---|---|
PacketBuffer(MarkerBuffer buffer,
java.lang.String firstHeader)
Initialize the Packet Buffer as PacketInputStream. |
|
| Method Summary | |
|---|---|
protected void |
init()
Initialize PacketInputStream attributes to make this hole thing work. |
void |
nextPacket()
Prep the stream for next packet in the buffer. |
| Methods inherited from class com.voytechs.jnetstream.io.ProtocolDataInputStream |
|---|
readBits, readBitsLong, readBoolean, readByte, readerUnsignedLongLittleEndian, readFromPacket, readFromPacket, readInt, readIntLittleEndian, readLong, readLongLittleEndian, readShort, readShortLittleEndian, readUnsignedByte, readUnsignedInt, readUnsignedIntLittleEndian, readUnsignedLong, readUnsignedShort, readUnsignedShortLittleEndian, reThrow |
| Methods inherited from class java.io.InputStream |
|---|
available, close, mark, markSupported, read, read, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PacketBuffer(MarkerBuffer buffer,
java.lang.String firstHeader)
throws java.io.IOException,
EOPacketStream,
StreamFormatException
buffer - buffer which contains the packet dataq.firstHeader - name of the first header in this buffer. i.e. "UDP"
java.io.IOException - any IO errors.
EOPacketStream - incase end of packet in the stream is reached.
StreamFormatException - if the input stream is not formatted
correctly.| Method Detail |
|---|
protected void init()
public void nextPacket()
throws java.io.IOException,
EOPacketStream,
StreamFormatException
nextPacket in class PacketInputStreamjava.io.IOException - any IO errors.
EOPacketStream - incase end of packet in the stream is reached.
StreamFormatException - if the input stream is not formatted
correctly.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||