public class ByteBufferUtils extends Object
| Constructor and Description |
|---|
ByteBufferUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
combine(Collection<ByteBuffer> bufs) |
static void |
copyTo(ByteBuffer src,
byte[] dst) |
static void |
copyTo(ByteBuffer src,
ByteBuffer dst) |
static SSLEngineResult |
encryptSSL(SSLEngine engine,
Collection<ByteBuffer> buffers,
ByteBuffer dest) |
static short |
getUnsignedByte(ByteBuffer buffer) |
static long |
getUnsignedInt(ByteBuffer buffer) |
static int |
getUnsignedShort(ByteBuffer buffer) |
static void |
putUnsignedByte(ByteBuffer buffer,
short value) |
static void |
putUnsignedInt(ByteBuffer buffer,
long value) |
static void |
putUnsignedShort(ByteBuffer buffer,
int value) |
static ByteBuffer |
view(ByteBuffer buffer,
int offset,
int length) |
public static ByteBuffer combine(Collection<ByteBuffer> bufs)
public static long getUnsignedInt(ByteBuffer buffer)
public static void putUnsignedInt(ByteBuffer buffer, long value)
public static int getUnsignedShort(ByteBuffer buffer)
public static void putUnsignedShort(ByteBuffer buffer, int value)
public static short getUnsignedByte(ByteBuffer buffer)
public static void putUnsignedByte(ByteBuffer buffer, short value)
public static ByteBuffer view(ByteBuffer buffer, int offset, int length)
public static void copyTo(ByteBuffer src, byte[] dst)
public static void copyTo(ByteBuffer src, ByteBuffer dst)
public static SSLEngineResult encryptSSL(SSLEngine engine, Collection<ByteBuffer> buffers, ByteBuffer dest) throws SSLException
SSLExceptionCopyright © 2006–2018 The Apache Software Foundation. All rights reserved.