public class BufferCaster
extends java.lang.Object
| Constructor and Description |
|---|
BufferCaster() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.nio.Buffer> |
cast(T byteBuffer)
Without this cast, when the code compiled by Java 9+ is executed on Java 8, it will throw
java.lang.NoSuchMethodError: Method flip()Ljava/nio/ByteBuffer; does not exist in class java.nio.ByteBuffer
|