public final class ByteUtils extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
concat(byte[] arg1,
byte[] arg2) |
static byte[] |
concatAll(byte[]... args) |
static byte[] |
getBytes(ByteBuffer byteBuffer)
Extract a byte array from
ByteBuffer without consuming it. |
static byte[][] |
mergeArrays(byte[] firstArray,
byte[]... additionalArrays)
Merge multiple
byte arrays into one array |
static byte[][] |
split(byte[] source,
int c) |
public static byte[] concat(byte[] arg1, byte[] arg2)
public static byte[] concatAll(byte[]... args)
public static byte[][] split(byte[] source, int c)
public static byte[][] mergeArrays(byte[] firstArray, byte[]... additionalArrays)
byte
arrays into one arrayfirstArray
- must not be nulladditionalArrays
- must not be nullpublic static byte[] getBytes(ByteBuffer byteBuffer)
ByteBuffer
without consuming it.byteBuffer
- must not be null.Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.