| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public CharBuffer | append(CharSequence csq, int start, int end)
Overrides java. Implements java. Appends a subsequence of the specified character sequence to this buffer (optional operation). |
| public CharBuffer | append(CharSequence csq)
Overrides java. Implements java. Appends the specified character sequence to this buffer (optional operation). |
| public CharBuffer | asReadOnlyBuffer()
Implements abstract java. Creates a new, read-only char buffer that shares this buffer's content. |
| pack-priv ByteOrder | |
| public CharBuffer | compact()
Implements abstract java. Compacts this buffer (optional operation). |
| public CharBuffer | duplicate()
Implements abstract java. Creates a new char buffer that shares this buffer's content. |
| public char | |
| public char | |
| public CharBuffer | |
| public CharBuffer | get(int index, char[] dst, int offset, int length)
Overrides java. Absolute bulk get method. |
| pack-priv char | |
| public boolean | isDirect()
Implements abstract java. Tells whether or not this char buffer is direct. |
| public boolean | isReadOnly()
Implements abstract java. Tells whether or not this buffer is read-only. |
| protected int | |
| public ByteOrder | |
| public CharBuffer | |
| public CharBuffer | put(int i, char x)
Implements abstract java. Absolute put method (optional operation). |
| public CharBuffer | put(char[] src, int offset, int length)
Overrides java. Relative bulk put method (optional operation). |
| public CharBuffer | put(CharBuffer src)
Overrides java. Relative bulk put method (optional operation). |
| public CharBuffer | put(int index, CharBuffer src, int offset, int length)
Overrides java. Absolute bulk put method (optional operation). |
| public CharBuffer | put(int index, char[] src, int offset, int length)
Overrides java. Absolute bulk put method (optional operation). |
| public CharBuffer | put(String src, int start, int end)
Overrides java. Relative bulk put method (optional operation). |
| public CharBuffer | slice()
Implements abstract java. Creates a new char buffer whose content is a shared subsequence of this buffer's content. |
| public CharBuffer | slice(int index, int length)
Implements abstract java. Creates a new char buffer whose content is a shared subsequence of this buffer's content. |
| public CharBuffer | subSequence(int start, int end)
Implements abstract java. Implements java. Creates a new character buffer that represents the specified subsequence of this buffer, relative to the current position. |
| pack-priv String |
| ARRAY_BASE_OFFSET | back to summary |
|---|---|
| private static final long ARRAY_BASE_OFFSET | |
| ARRAY_INDEX_SCALE | back to summary |
|---|---|
| private static final long ARRAY_INDEX_SCALE | |
| HeapCharBuffer | back to summary |
|---|---|
| pack-priv HeapCharBuffer(int cap, int lim, MemorySegment segment) | |
| HeapCharBuffer | back to summary |
|---|---|
| pack-priv HeapCharBuffer(char[] buf, int off, int len, MemorySegment segment) | |
| HeapCharBuffer | back to summary |
|---|---|
| protected HeapCharBuffer(char[] buf, int mark, int pos, int lim, int cap, int off, MemorySegment segment) | |
| append | back to summary |
|---|---|
| public CharBuffer append(CharSequence csq, int start, int end) Overrides java. Implements java. Doc from java. Appends a subsequence of the specified character sequence to this buffer (optional operation). An invocation of this method of the form dst.put(csq.subSequence(start, end).toString()) | |
| append | back to summary |
|---|---|
| public CharBuffer append(CharSequence csq) Overrides java. Implements java. Doc from java. Appends the specified character sequence to this buffer (optional operation). An invocation of this method of the form dst.put(csq.toString()) Depending on the specification of | |
| asReadOnlyBuffer | back to summary |
|---|---|
| public CharBuffer asReadOnlyBuffer() Implements abstract java. Doc from java. Creates a new, read-only char buffer that shares this buffer's content. The content of the new buffer will be that of this buffer. Changes to this buffer's content will be visible in the new buffer; the new buffer itself, however, will be read-only and will not allow the shared content to be modified. The two buffers' position, limit, and mark values will be independent. The new buffer's capacity, limit, position, mark values, and byte order will be identical to those of this buffer. If this buffer is itself read-only then this method behaves in
exactly the same way as the | |
| charRegionOrder | back to summary |
|---|---|
| pack-priv ByteOrder charRegionOrder() Implements abstract java. | |
| compact | back to summary |
|---|---|
| public CharBuffer compact() Implements abstract java. Doc from java. Compacts this buffer (optional operation). The chars between the buffer's current position and its limit,
if any, are copied to the beginning of the buffer. That is, the
char at index p = The buffer's position is set to the number of chars copied, rather than to zero, so that an invocation of this method can be followed immediately by an invocation of another relative put method. | |
| duplicate | back to summary |
|---|---|
| public CharBuffer duplicate() Implements abstract java. Doc from java. Creates a new char buffer that shares this buffer's content. The content of the new buffer will be that of this buffer. Changes to this buffer's content will be visible in the new buffer, and vice versa; the two buffers' position, limit, and mark values will be independent. The new buffer's capacity, limit, position, mark values, and byte order will be identical to those of this buffer. The new buffer will be direct if, and only if, this buffer is direct, and it will be read-only if, and only if, this buffer is read-only. | |
| get | back to summary |
|---|---|
| public char get() Implements abstract java. Doc from java. Relative get method. Reads the char at this buffer's current position, and then increments the position. | |
| get | back to summary |
|---|---|
| public char get(int i) Implements abstract java. Doc from java. Absolute get method. Reads the char at the given index. | |
| get | back to summary |
|---|---|
| public CharBuffer get(char[] dst, int offset, int length) Overrides java. Doc from java. Relative bulk get method. This method transfers chars from this buffer into the given
destination array. If there are fewer chars remaining in the
buffer than are required to satisfy the request, that is, if
Otherwise, this method copies In other words, an invocation of this method of the form
for (int i = off; i < off + len; i++) dst[i] = src.get(); | |
| get | back to summary |
|---|---|
| public CharBuffer get(int index, char[] dst, int offset, int length) Overrides java. Doc from java. Absolute bulk get method. This method transfers An invocation of this method of the form
for (int i = offset, j = index; i < offset + length; i++, j++) dst[i] = src.get(j); | |
| getUnchecked | back to summary |
|---|---|
| pack-priv char getUnchecked(int i) Implements abstract java. Doc from java. Absolute get method. Reads the char at the given index without any validation of the index. | |
| isDirect | back to summary |
|---|---|
| public boolean isDirect() Implements abstract java. Doc from java. Tells whether or not this char buffer is direct. | |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Implements abstract java. Doc from java. Tells whether or not this buffer is read-only. | |
| ix | back to summary |
|---|---|
| protected int ix(int i) | |
| order | back to summary |
|---|---|
| public ByteOrder order() Implements abstract java. Doc from java. Retrieves this buffer's byte order. The byte order of a char buffer created by allocation or by
wrapping an existing | |
| put | back to summary |
|---|---|
| public CharBuffer put(char x) Implements abstract java. Doc from java. Relative put method (optional operation). Writes the given char into this buffer at the current position, and then increments the position. | |
| put | back to summary |
|---|---|
| public CharBuffer put(int i, char x) Implements abstract java. Doc from java. Absolute put method (optional operation). Writes the given char into this buffer at the given index. | |
| put | back to summary |
|---|---|
| public CharBuffer put(char[] src, int offset, int length) Overrides java. Doc from java. Relative bulk put method (optional operation). This method transfers chars into this buffer from the given
source array. If there are more chars to be copied from the array
than remain in this buffer, that is, if
Otherwise, this method copies In other words, an invocation of this method of the form
for (int i = off; i < off + len; i++) dst.put(src[i]); | |
| put | back to summary |
|---|---|
| public CharBuffer put(CharBuffer src) Overrides java. Doc from java. Relative bulk put method (optional operation). This method transfers the chars remaining in the given source
buffer into this buffer. If there are more chars remaining in the
source buffer than in this buffer, that is, if
Otherwise, this method copies
n = In other words, an invocation of this method of the form
while (src.hasRemaining()) dst.put(src.get()); | |
| put | back to summary |
|---|---|
| public CharBuffer put(int index, CharBuffer src, int offset, int length) Overrides java. Doc from java. Absolute bulk put method (optional operation). This method transfers In other words, an invocation of this method of the form
for (int i = offset, j = index; i < offset + length; i++, j++) dst.put(j, src.get(i)); | |
| put | back to summary |
|---|---|
| public CharBuffer put(int index, char[] src, int offset, int length) Overrides java. Doc from java. Absolute bulk put method (optional operation). This method transfers An invocation of this method of the form
for (int i = offset, j = index; i < offset + length; i++, j++) dst.put(j, src[i]); | |
| put | back to summary |
|---|---|
| public CharBuffer put(String src, int start, int end) Overrides java. Doc from java. Relative bulk put method (optional operation). This method transfers chars from the given string into this
buffer. If there are more chars to be copied from the string than
remain in this buffer, that is, if
Otherwise, this method copies
n = In other words, an invocation of this method of the form
for (int i = start; i < end; i++) dst.put(src.charAt(i)); | |
| slice | back to summary |
|---|---|
| public CharBuffer slice() Implements abstract java. Doc from java. Creates a new char buffer whose content is a shared subsequence of this buffer's content. The content of the new buffer will start at this buffer's current position. Changes to this buffer's content will be visible in the new buffer, and vice versa; the two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of chars remaining in this buffer, its mark will be undefined, and its byte order will be identical to that of this buffer. The new buffer will be direct if, and only if, this buffer is direct, and it will be read-only if, and only if, this buffer is read-only. | |
| slice | back to summary |
|---|---|
| public CharBuffer slice(int index, int length) Implements abstract java. Doc from java. Creates a new char buffer whose content is a shared subsequence of this buffer's content. The content of the new buffer will start at position The new buffer's position will be zero, its capacity and its limit
will be
| |
| subSequence | back to summary |
|---|---|
| public CharBuffer subSequence(int start, int end) Implements abstract java. Implements java. Doc from java. Creates a new character buffer that represents the specified subsequence of this buffer, relative to the current position. The new buffer will share this buffer's content; that is, if the
content of this buffer is mutable then modifications to one buffer will
cause the other to be modified. The new buffer's capacity will be that
of this buffer, its position will be
| |
| toString | back to summary |
|---|---|
| pack-priv String toString(int start, int end) Implements abstract java. | |