public final class CharBuffer extends Object implements CharArray
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
protected char[] |
hb |
| Constructor and Description |
|---|
CharBuffer() |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
void |
clean() |
boolean |
equals(Object obj) |
char |
getBefore(int i) |
int |
hashCode() |
int |
length() |
int |
pos() |
void |
put(char c)
Writes the given char into this buffer at the current position, and then increments the position.
|
void |
reset() |
void |
setPos(int pos) |
CharArray |
subSequence(int start,
int end) |
String |
toString() |
char[] |
value() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointspublic static final int DEFAULT_BUFFER_SIZE
protected char[] hb
public void put(char c)
Writes the given char into this buffer at the current position, and then increments the position.
c - The char to be writtenpublic String toString()
toString in interface CharSequencetoString in class Objectpublic int pos()
public void setPos(int pos)
public void reset()
public int length()
length in interface CharSequencepublic char charAt(int index)
charAt in interface CharSequencepublic CharArray subSequence(int start, int end)
subSequence in interface CharArraysubSequence in interface CharSequencepublic char getBefore(int i)
public void clean()
Copyright © 2017. All rights reserved.