public class BufferUtils extends Object
| Constructor and Description |
|---|
BufferUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
catBuffers(ByteBuffer b1,
ByteBuffer b2)
Concatenate two byte buffers into one, updating their position.
|
static ByteBuffer |
doubleBuffer(ByteBuffer b)
Double the capacity of the specified buffer so that more data may be added.
|
static CharBuffer |
doubleBuffer(CharBuffer b)
Double the capacity of the specified buffer so that more data may be added.
|
static ByteBuffer |
duplicateBuffer(ByteBuffer b)
Make a duplicate of a ByteBuffer.
|
static void |
zeroBuffer(ByteBuffer b)
Fill a ByteBuffer with zeros, useful if it has been used to store a password or something.
|
public static ByteBuffer catBuffers(ByteBuffer b1, ByteBuffer b2)
public static CharBuffer doubleBuffer(CharBuffer b)
public static ByteBuffer doubleBuffer(ByteBuffer b)
public static void zeroBuffer(ByteBuffer b)
public static ByteBuffer duplicateBuffer(ByteBuffer b)
Copyright © 2016 Apigee Corporation. All Rights Reserved.