public final class RawCharSequence extends Object implements CharSequence
Characters are assumed to be 8-bit US-ASCII.
Modifier and Type | Field and Description |
---|---|
static RawCharSequence |
EMPTY
A zero-length character sequence.
|
Constructor and Description |
---|
RawCharSequence(byte[] buf,
int start,
int end)
Create a rough character sequence around the raw byte buffer.
|
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 © 2015 Eclipse JGit Project. All rights reserved.