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