Characters are assumed to be 8-bit US-ASCII.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final byte[] | |
| public static final RawCharSequence | EMPTY
A zero-length character sequence. |
| pack-priv final int | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| public | RawCharSequence(byte[]
buffer to scan. buf, int starting position for the sequence. start, int ending position for the sequence. end)Create a rough character sequence around the raw byte buffer. |
| Modifier and Type | Method and Description |
|---|---|
| public char | charAt(int
the index of the index)char value to be returnedImplements java. Returns the |
| public int | |
| public CharSequence | subSequence(int
the start index, inclusive start, int the end index, exclusive end)Implements java. Returns a |
| public String | toString()
Overrides java. Implements java. Returns a string containing the characters in this sequence in the same order as this sequence. |
| buffer | back to summary |
|---|---|
| pack-priv final byte[] buffer | |
| EMPTY | back to summary |
|---|---|
| public static final RawCharSequence EMPTY A zero-length character sequence. | |
| endPtr | back to summary |
|---|---|
| pack-priv final int endPtr | |
| startPtr | back to summary |
|---|---|
| pack-priv final int startPtr | |
| RawCharSequence | back to summary |
|---|---|
| public RawCharSequence(byte[] buf, int start, int end) Create a rough character sequence around the raw byte buffer.
| |
| charAt | back to summary |
|---|---|
| public char charAt(int index) Implements java. Doc from java. Returns the If the
| |
| length | back to summary |
|---|---|
| public int length() Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit
| |
| subSequence | back to summary |
|---|---|
| public CharSequence subSequence(int start, int end) Implements java. Doc from java. Returns a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Doc from java. Returns a string containing the characters in this sequence in the same order as this sequence. The length of the string will be the length of this sequence. | |