public class ByteUtils extends Object
Constructor and Description |
---|
ByteUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
concat(byte[]... fields)
Concatenates byte arrays with 0x00 as a delimiter
|
static byte[] |
escape(byte[] in)
Escapes 0x00 with 0x01 0x01 and 0x01 with 0x01 0x02
|
static byte[][] |
split(byte[] data)
Splits a byte array by 0x00
|
static byte[][] |
split(byte[] data,
int dataOffset,
int len)
Splits a byte array by 0x00
|
static byte[] |
unescape(byte[] in)
Unescapes 0x00 0x01 0x01 with 0x00 and 0x01 0x01 0x2 with 0x01
|
public static byte[] escape(byte[] in)
public static byte[] unescape(byte[] in)
public static byte[][] split(byte[] data)
public static byte[][] split(byte[] data, int dataOffset, int len)
public static byte[] concat(byte[]... fields)
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.