|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.stream.netstream.packing.NetStreamUnpacker
public abstract class NetStreamUnpacker
Constructor Summary | |
---|---|
NetStreamUnpacker()
|
Method Summary | |
---|---|
abstract int |
sizeOfInt()
An unpacker has to be abble to indicated what is the size of an int after being packed. |
ByteBuffer |
unpackMessage(ByteBuffer buffer)
Unpack the given ByteBuffer |
abstract ByteBuffer |
unpackMessage(ByteBuffer buffer,
int startIndex,
int endIndex)
Unpack the given ByteBuffer from startIndex to endIdex |
abstract int |
unpackMessageSize(ByteBuffer buffer)
Unpacks the data necessary to decode a 4 bytes integer that indicates the size of the following message. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetStreamUnpacker()
Method Detail |
---|
public abstract int sizeOfInt()
public abstract ByteBuffer unpackMessage(ByteBuffer buffer, int startIndex, int endIndex)
buffer
- The buffer to unpack/decodestartIndex
- the index at which the decoding starts in the bufferendIndex
- the index at which the decoding stops
public ByteBuffer unpackMessage(ByteBuffer buffer)
buffer
- The buffer to unpack/decode
public abstract int unpackMessageSize(ByteBuffer buffer)
buffer
- The byteBuffer who's content has the encoded value of the needed size integer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |