public class CodePointBuffer extends 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 | Method and Description |
---|---|
static CodePointBuffer.Builder |
builder(int initialBufferSize) |
int |
get(int offset) |
int |
position() |
void |
position(int newPosition) |
int |
remaining() |
static CodePointBuffer |
withBytes(ByteBuffer byteBuffer) |
static CodePointBuffer |
withChars(CharBuffer charBuffer) |
static CodePointBuffer |
withInts(IntBuffer intBuffer) |
public static CodePointBuffer withBytes(ByteBuffer byteBuffer)
public static CodePointBuffer withChars(CharBuffer charBuffer)
public static CodePointBuffer withInts(IntBuffer intBuffer)
public int position()
public void position(int newPosition)
public int remaining()
public int get(int offset)
public static CodePointBuffer.Builder builder(int initialBufferSize)
Copyright © 1992–2020 ANTLR. All rights reserved.