public class Base64Packer extends NetStreamPacker
Constructor and Description |
---|
Base64Packer() |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
packMessage(java.nio.ByteBuffer buffer,
int startIndex,
int endIndex)
Pack the given ByteBuffer from startIndex to endIdex
|
java.nio.ByteBuffer |
packMessageSize(int capacity) |
packMessage
public java.nio.ByteBuffer packMessage(java.nio.ByteBuffer buffer, int startIndex, int endIndex)
NetStreamPacker
packMessage
in class NetStreamPacker
buffer
- The buffer to pack/encodestartIndex
- the index at which the encoding starts in the bufferendIndex
- the index at which the encoding stopspublic java.nio.ByteBuffer packMessageSize(int capacity)
packMessageSize
in class NetStreamPacker