org.apache.accumulo.core.client.lexicoder.impl
Class ByteUtils

java.lang.Object
  extended by org.apache.accumulo.core.client.lexicoder.impl.ByteUtils

public class ByteUtils
extends Object


Constructor Summary
ByteUtils()
           
 
Method Summary
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[] unescape(byte[] in)
          Unescapes 0x00 0x01 0x01 with 0x00 and 0x01 0x01 0x2 with 0x01
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteUtils

public ByteUtils()
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


concat

public static byte[] concat(byte[]... fields)
Concatenates byte arrays with 0x00 as a delimiter



Copyright © 2015 Apache Accumulo Project. All rights reserved.