public static class CodePointBuffer.Builder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.nio.ByteBuffer |
byteBuffer |
private java.nio.CharBuffer |
charBuffer |
private java.nio.IntBuffer |
intBuffer |
private int |
prevHighSurrogate |
private CodePointBuffer.Type |
type |
| Modifier | Constructor and Description |
|---|---|
private |
Builder(int initialBufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(java.nio.CharBuffer utf16In) |
private void |
appendArray(java.nio.CharBuffer utf16In) |
private void |
appendArrayByte(java.nio.CharBuffer utf16In) |
private void |
appendArrayChar(java.nio.CharBuffer utf16In) |
private void |
appendArrayInt(java.nio.CharBuffer utf16In) |
CodePointBuffer |
build() |
private void |
byteToCharBuffer(int toAppend) |
private void |
byteToIntBuffer(int toAppend) |
private void |
charToIntBuffer(int toAppend) |
void |
ensureRemaining(int remainingNeeded) |
(package private) java.nio.ByteBuffer |
getByteBuffer() |
(package private) java.nio.CharBuffer |
getCharBuffer() |
(package private) java.nio.IntBuffer |
getIntBuffer() |
(package private) CodePointBuffer.Type |
getType() |
private static int |
roundUpToNextPowerOfTwo(int i) |
private CodePointBuffer.Type type
private java.nio.ByteBuffer byteBuffer
private java.nio.CharBuffer charBuffer
private java.nio.IntBuffer intBuffer
private int prevHighSurrogate
CodePointBuffer.Type getType()
java.nio.ByteBuffer getByteBuffer()
java.nio.CharBuffer getCharBuffer()
java.nio.IntBuffer getIntBuffer()
public CodePointBuffer build()
private static int roundUpToNextPowerOfTwo(int i)
public void ensureRemaining(int remainingNeeded)
public void append(java.nio.CharBuffer utf16In)
private void appendArray(java.nio.CharBuffer utf16In)
private void appendArrayByte(java.nio.CharBuffer utf16In)
private void appendArrayChar(java.nio.CharBuffer utf16In)
private void appendArrayInt(java.nio.CharBuffer utf16In)
private void byteToCharBuffer(int toAppend)
private void byteToIntBuffer(int toAppend)
private void charToIntBuffer(int toAppend)