Package uk.gov.gchq.gaffer.commonutil
Class ByteBufferUtil
- java.lang.Object
-
- uk.gov.gchq.gaffer.commonutil.ByteBufferUtil
-
public final class ByteBufferUtil extends Object
Utility methods for a ByteBuffer. This class is coped from org.apache.accumulo.core.util.ByteBufferUtil.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteArrayInputStream
toByteArrayInputStream(ByteBuffer buffer)
static byte[]
toBytes(ByteBuffer buffer)
static List<byte[]>
toBytesList(Collection<ByteBuffer> bytesList)
static String
toString(ByteBuffer bytes)
static void
write(DataOutput out, ByteBuffer buffer)
-
-
-
Method Detail
-
toBytes
public static byte[] toBytes(ByteBuffer buffer)
-
write
public static void write(DataOutput out, ByteBuffer buffer) throws IOException
- Throws:
IOException
-
toString
public static String toString(ByteBuffer bytes)
-
toBytesList
public static List<byte[]> toBytesList(Collection<ByteBuffer> bytesList)
-
toByteArrayInputStream
public static ByteArrayInputStream toByteArrayInputStream(ByteBuffer buffer)
-
-