public class CodePointBuffer
extends java.lang.Object
ByteBuffer / CharBuffer / IntBuffer.
Because Java lacks generics on primitive types, these three types
do not share an interface, so we have to write one manually.| Modifier and Type | Class and Description |
|---|---|
static class |
CodePointBuffer.Builder |
static class |
CodePointBuffer.Type |
| Modifier and Type | Field and Description |
|---|---|
private java.nio.ByteBuffer |
byteBuffer |
private java.nio.CharBuffer |
charBuffer |
private java.nio.IntBuffer |
intBuffer |
private CodePointBuffer.Type |
type |
| Modifier | Constructor and Description |
|---|---|
private |
CodePointBuffer(CodePointBuffer.Type type,
java.nio.ByteBuffer byteBuffer,
java.nio.CharBuffer charBuffer,
java.nio.IntBuffer intBuffer) |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
arrayOffset() |
static CodePointBuffer.Builder |
builder(int initialBufferSize) |
(package private) byte[] |
byteArray() |
(package private) char[] |
charArray() |
int |
get(int offset) |
(package private) CodePointBuffer.Type |
getType() |
(package private) int[] |
intArray() |
int |
position() |
void |
position(int newPosition) |
int |
remaining() |
static CodePointBuffer |
withBytes(java.nio.ByteBuffer byteBuffer) |
static CodePointBuffer |
withChars(java.nio.CharBuffer charBuffer) |
static CodePointBuffer |
withInts(java.nio.IntBuffer intBuffer) |
private final CodePointBuffer.Type type
private final java.nio.ByteBuffer byteBuffer
private final java.nio.CharBuffer charBuffer
private final java.nio.IntBuffer intBuffer
private CodePointBuffer(CodePointBuffer.Type type, java.nio.ByteBuffer byteBuffer, java.nio.CharBuffer charBuffer, java.nio.IntBuffer intBuffer)
public static CodePointBuffer withBytes(java.nio.ByteBuffer byteBuffer)
public static CodePointBuffer withChars(java.nio.CharBuffer charBuffer)
public static CodePointBuffer withInts(java.nio.IntBuffer intBuffer)
public int position()
public void position(int newPosition)
public int remaining()
public int get(int offset)
CodePointBuffer.Type getType()
int arrayOffset()
byte[] byteArray()
char[] charArray()
int[] intArray()
public static CodePointBuffer.Builder builder(int initialBufferSize)