public class Base64Encoder
construct()construct(int maxChunkLength)writeByte(int n)Writes an unsigned byte to be serialized into Base64.
writeShort(int n)Writes an unsigned short to be serialized into Base64.
writeInt(int n)Writes a signed integer to be serialized into Base64.
write(ByteBuffer data)Writes the bytes of the buffer to be serialized into Base64, starting at the buffer’s current read cursor (bytes already read are skipped). The buffer’s read cursor is reset afterwards and the buffer is not destroyed.
consume(ByteBuffer data)Writes all bytes from the buffer to be serialized into Base64 and destroys the buffer.
intoData() returns ChunkedStringConsumes this encoder and returns the encoded data as a ChunkedString.