| Modifier and Type | Field and Description |
|---|---|
| pack-priv CharSequence |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public CharBuffer | asReadOnlyBuffer()
Implements abstract java. Creates a new, read-only char buffer that shares this buffer's content. |
| pack-priv ByteOrder | |
| public final CharBuffer | compact()
Implements abstract java. Compacts this buffer (optional operation). |
| public int | compareTo(CharBuffer that)
Overrides java. Implements java. Compares this buffer to another. |
| public CharBuffer | duplicate()
Implements abstract java. Creates a new char buffer that shares this buffer's content. |
| public boolean | equals(Object ob)
Overrides java. Tells whether or not this buffer is equal to another object. |
| public final char | |
| public final char | |
| pack-priv CharBuffer | |
| pack-priv char | |
| pack-priv boolean | isAddressable()
Overrides java. Tells whether this buffer has addressable memory, e.g., a Java array or a native address. |
| public boolean | isDirect()
Implements abstract java. Tells whether or not this char buffer is direct. |
| public final boolean | isReadOnly()
Implements abstract java. Tells whether or not this buffer is read-only. |
| public ByteOrder | |
| public final CharBuffer | |
| public final CharBuffer | put(int index, char c)
Implements abstract java. Absolute 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 final 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 final String |
| str | back to summary |
|---|---|
| pack-priv CharSequence str | |
| StringCharBuffer | back to summary |
|---|---|
| pack-priv StringCharBuffer(CharSequence s, int start, int end) | |
| StringCharBuffer | back to summary |
|---|---|
| private StringCharBuffer(CharSequence s, int mark, int pos, int limit, int cap, int offset) | |
| 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 final 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. | |
| compareTo | back to summary |
|---|---|
| public int compareTo(CharBuffer that) Overrides java. Implements java. Doc from java. Compares this buffer to another. Two char buffers are compared by comparing their sequences of
remaining elements lexicographically, without regard to the starting
position of each sequence within its corresponding buffer.
Pairs of A char buffer is not comparable to any other type of object. | |
| 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. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object ob) Overrides java. Doc from java. Tells whether or not this buffer is equal to another object. Two char buffers are equal if, and only if,
A char buffer is not equal to any other type of object. | |
| get | back to summary |
|---|---|
| public final 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 final char get(int index) Implements abstract java. Doc from java. Absolute get method. Reads the char at the given index. | |
| getArray | back to summary |
|---|---|
| pack-priv CharBuffer getArray(int index, char[] dst, int dstOffset, int length) Overrides java.
| |
| getUnchecked | back to summary |
|---|---|
| pack-priv char getUnchecked(int index) Implements abstract java. Doc from java. Absolute get method. Reads the char at the given index without any validation of the index. | |
| isAddressable | back to summary |
|---|---|
| pack-priv boolean isAddressable() Overrides java. Doc from java. Tells whether this buffer has addressable memory, e.g., a Java array or
a native address. This method returns | |
| 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 final boolean isReadOnly() Implements abstract java. Doc from java. Tells whether or not this buffer is read-only. | |
| 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 final CharBuffer put(char c) 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 final CharBuffer put(int index, char c) Implements abstract java. Doc from java. Absolute put method (optional operation). Writes the given char into this buffer at the given index. | |
| 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 final 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 final String toString(int start, int end) Implements abstract java. | |