|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnaga.packetreader.DelimiterPacketReader
naga.packetreader.ZeroDelimitedPacketReader
public class ZeroDelimitedPacketReader
Reads a bytestream delimited by 0.
| Field Summary |
|---|
| Fields inherited from class naga.packetreader.DelimiterPacketReader |
|---|
DEFAULT_READ_BUFFER_SIZE |
| Constructor Summary | |
|---|---|
ZeroDelimitedPacketReader()
Creates zero delimited reader with a default read buffer and unlimited max packet size. |
|
ZeroDelimitedPacketReader(int maxPacketSize)
Creates a zero delimited reader with the given max packet size and the default read buffer size. |
|
ZeroDelimitedPacketReader(int readBufferSize,
int maxPacketSize)
Creates a zero delimited reader with the given max packet size and read buffer size. |
|
| Method Summary |
|---|
| Methods inherited from class naga.packetreader.DelimiterPacketReader |
|---|
getBuffer, getMaxPacketSize, getNextPacket, setMaxPacketSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZeroDelimitedPacketReader()
public ZeroDelimitedPacketReader(int readBufferSize,
int maxPacketSize)
Exceeding the packet size will throw a ProtocolViolationException.
readBufferSize - the size of the read buffer (i.e. how many
bytes are read in a single pass) - this only has effect on read
efficiency and memory requirements.maxPacketSize - the maximum packet size to accept.public ZeroDelimitedPacketReader(int maxPacketSize)
Exceeding the packet size will throw a ProtocolViolationException.
maxPacketSize - the maximum packet size to accept.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||