| Package | Description |
|---|---|
| java.nio |
| Modifier and Type | Method and Description |
|---|---|
CharBuffer |
CharBuffer.append(char c)
Writes the given char to the current position and increases the position by 1.
|
CharBuffer |
CharBuffer.append(CharSequence csq)
Writes all chars of the given character sequence
csq to the current position of
this buffer, and increases the position by the length of the csq. |
CharBuffer |
CharBuffer.append(CharSequence csq,
int start,
int end)
Writes chars of the given
CharSequence to the current position of this buffer, and
increases the position by the number of chars written. |
abstract CharBuffer |
CharBuffer.asReadOnlyBuffer()
Returns a read-only buffer that shares its content with this buffer.
|
abstract CharBuffer |
CharBuffer.compact()
Compacts this char buffer.
|
abstract CharBuffer |
CharBuffer.duplicate()
Returns a duplicated buffer that shares its content with this buffer.
|
CharBuffer |
CharBuffer.get(char[] dest)
Reads chars from the current position into the specified char array and increases the
position by the number of chars read.
|
CharBuffer |
CharBuffer.get(char[] dest,
int off,
int len)
Reads chars from the current position into the specified char array, starting from the
specified offset, and increases the position by the number of chars read.
|
abstract CharBuffer |
CharBuffer.put(char c)
Writes the given char to the current position and increases the position by 1.
|
CharBuffer |
CharBuffer.put(char[] src)
Writes chars from the given char array to the current position and increases the position
by the number of chars written.
|
CharBuffer |
CharBuffer.put(char[] src,
int off,
int len)
Writes chars from the given char array, starting from the specified offset, to the current
position and increases the position by the number of chars written.
|
CharBuffer |
CharBuffer.put(CharBuffer src)
Writes all the remaining chars of the
src char buffer to this buffer's current
position, and increases both buffers' position by the number of chars copied. |
abstract CharBuffer |
CharBuffer.put(int index,
char c)
Writes a char to the specified index of this buffer; the position is not changed.
|
CharBuffer |
CharBuffer.put(String str)
Writes all chars of the given string to the current position of this buffer, and increases
the position by the length of string.
|
CharBuffer |
CharBuffer.put(String str,
int start,
int end)
Writes chars of the given string to the current position of this buffer, and increases the
position by the number of chars written.
|
abstract CharBuffer |
CharBuffer.slice()
Returns a sliced buffer that shares its content with this buffer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
CharBuffer.compareTo(CharBuffer otherBuffer)
Compare the remaining chars of this buffer to another char buffer's remaining chars.
|
CharBuffer |
CharBuffer.put(CharBuffer src)
Writes all the remaining chars of the
src char buffer to this buffer's current
position, and increases both buffers' position by the number of chars copied. |
int |
CharBuffer.read(CharBuffer target)
Reads characters from this buffer and puts them into
target. |
Copyright © 2019–2020. All rights reserved.