Class ByteUtils
- java.lang.Object
-
- org.apache.accumulo.core.clientImpl.lexicoder.ByteUtils
-
public class ByteUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ByteUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]concat(byte[]... fields)Concatenates byte arrays with 0x00 as a delimiterstatic byte[]escape(byte[] in)Escapes 0x00 with 0x01 0x01 and 0x01 with 0x01 0x02static byte[][]split(byte[] data)Splits a byte array by 0x00static byte[][]split(byte[] data, int dataOffset, int len)Splits a byte array by 0x00static byte[]unescape(byte[] in)Unescapes 0x00 0x01 0x01 with 0x00 and 0x01 0x01 0x2 with 0x01
-
-
-
Method Detail
-
escape
public static byte[] escape(byte[] in)
Escapes 0x00 with 0x01 0x01 and 0x01 with 0x01 0x02
-
unescape
public static byte[] unescape(byte[] in)
Unescapes 0x00 0x01 0x01 with 0x00 and 0x01 0x01 0x2 with 0x01
-
split
public static byte[][] split(byte[] data)
Splits a byte array by 0x00
-
split
public static byte[][] split(byte[] data, int dataOffset, int len)Splits a byte array by 0x00
-
concat
public static byte[] concat(byte[]... fields)
Concatenates byte arrays with 0x00 as a delimiter
-
-