Beispiel #1
0
 public void writeBytes(byte[] value) {
   char[] result = CharsetHelper.bytesToCharacters(value, charset);
   append(result);
 }
Beispiel #2
0
 public void writeByte(byte value) {
   char[] result = CharsetHelper.bytesToCharacters(new byte[] {value}, charset);
   append(result);
 }
Beispiel #3
0
 public byte[] toByteArray() {
   return CharsetHelper.charactersToBytes(data, 0, size, charset);
 }