Package org.apache.accumulo.core.util
Class ByteBufferUtil
- java.lang.Object
-
- org.apache.accumulo.core.util.ByteBufferUtil
-
public class ByteBufferUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ByteBufferUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteArrayInputStream
toByteArrayInputStream(ByteBuffer buffer)
static List<ByteBuffer>
toByteBuffers(Collection<byte[]> bytesList)
static ByteBuffer
toByteBuffers(ByteSequence bs)
static byte[]
toBytes(ByteBuffer buffer)
static List<byte[]>
toBytesList(Collection<ByteBuffer> bytesList)
static String
toString(ByteBuffer bytes)
static org.apache.hadoop.io.Text
toText(ByteBuffer byteBuffer)
static void
write(DataOutput out, ByteBuffer buffer)
-
-
-
Method Detail
-
toBytes
public static byte[] toBytes(ByteBuffer buffer)
-
toByteBuffers
public static List<ByteBuffer> toByteBuffers(Collection<byte[]> bytesList)
-
toBytesList
public static List<byte[]> toBytesList(Collection<ByteBuffer> bytesList)
-
toText
public static org.apache.hadoop.io.Text toText(ByteBuffer byteBuffer)
-
toString
public static String toString(ByteBuffer bytes)
-
toByteBuffers
public static ByteBuffer toByteBuffers(ByteSequence bs)
-
write
public static void write(DataOutput out, ByteBuffer buffer) throws IOException
- Throws:
IOException
-
toByteArrayInputStream
public static ByteArrayInputStream toByteArrayInputStream(ByteBuffer buffer)
-
-