public class Buffers extends Object
| Constructor | Description |
|---|---|
Buffers() |
| Modifier and Type | Method | Description |
|---|---|---|
static <T extends Buffer> |
clearBuffer(T buf) |
Invoke Buffer.clear always using Buffer as the target, to avoid binary incompatibility on Java 8.
|
static <T extends Buffer> |
flipBuffer(T buf) |
Invoke Buffer.flip always using Buffer as the target, to avoid binary incompatibility on Java 8.
|
static <T extends Buffer> |
limitBuffer(T buf,
int limit) |
Invoke Buffer.limit always using Buffer as the target, to avoid binary incompatibility on Java 8.
|
static <T extends Buffer> |
markBuffer(T buf) |
Invoke Buffer.mark always using Buffer as the target, to avoid binary incompatibility on Java 8.
|
static <T extends Buffer> |
positionBuffer(T buf,
int limit) |
Invoke Buffer.position always using Buffer as the target, to avoid binary incompatibility on Java 8.
|
public static <T extends Buffer> T clearBuffer(T buf)
T - any java.nio.Buffer typebuf - the bufferpublic static <T extends Buffer> T flipBuffer(T buf)
T - any java.nio.Buffer typebuf - the bufferpublic static <T extends Buffer> T limitBuffer(T buf, int limit)
T - any java.nio.Buffer typebuf - the bufferpublic static <T extends Buffer> T positionBuffer(T buf, int limit)
T - any java.nio.Buffer typebuf - the bufferpublic static <T extends Buffer> T markBuffer(T buf)
T - any java.nio.Buffer typebuf - the bufferCopyright © 2018. All rights reserved.