public class Base64Unpacker extends NetStreamUnpacker
| Constructor and Description |
|---|
Base64Unpacker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
int |
sizeOfInt()
An unpacker has to be abble to indicated what is the size of an int after being packed.
|
ByteBuffer |
unpackMessage(ByteBuffer buffer,
int startIndex,
int endIndex)
Unpack the given ByteBuffer from startIndex to endIdex
|
int |
unpackMessageSize(ByteBuffer buffer)
Unpacks the data necessary to decode a 4 bytes integer that indicates the size of the following message.
|
unpackMessagepublic ByteBuffer unpackMessage(ByteBuffer buffer, int startIndex, int endIndex)
NetStreamUnpackerunpackMessage in class NetStreamUnpackerbuffer - The buffer to unpack/decodestartIndex - the index at which the decoding starts in the bufferendIndex - the index at which the decoding stopspublic int unpackMessageSize(ByteBuffer buffer)
NetStreamUnpackerunpackMessageSize in class NetStreamUnpackerbuffer - The byteBuffer who's content has the encoded value of the needed size integer.public static void main(String[] args)
public int sizeOfInt()
NetStreamUnpackersizeOfInt in class NetStreamUnpackerCopyright © 2015. All rights reserved.