CharSequence
public final class RawCharSequence extends Object implements CharSequence
Characters are assumed to be 8-bit US-ASCII.
Modifier and Type | Field | Description |
---|---|---|
static RawCharSequence |
EMPTY |
A zero-length character sequence.
|
Constructor | Description |
---|---|
RawCharSequence(byte[] buf,
int start,
int end) |
Create a rough character sequence around the raw byte buffer.
|
Modifier and Type | Method | Description |
---|---|---|
char |
charAt(int index) |
|
int |
length() |
|
CharSequence |
subSequence(int start,
int end) |
|
String |
toString() |
chars, codePoints
public static final RawCharSequence EMPTY
public RawCharSequence(byte[] buf, int start, int end)
buf
- buffer to scan.start
- starting position for the sequence.end
- ending position for the sequence.public char charAt(int index)
charAt
in interface CharSequence
public int length()
length
in interface CharSequence
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
public String toString()
toString
in interface CharSequence
toString
in class Object
Copyright © 2018. All rights reserved.