Package org.eclipse.jgit.util
Class RawCharSequence
- java.lang.Object
-
- org.eclipse.jgit.util.RawCharSequence
-
- All Implemented Interfaces:
CharSequence
public final class RawCharSequence extends Object implements CharSequence
A rough character sequence around a raw byte buffer.Characters are assumed to be 8-bit US-ASCII.
-
-
Field Summary
Fields Modifier and Type Field Description static RawCharSequence
EMPTY
A zero-length character sequence.
-
Constructor Summary
Constructors Constructor Description RawCharSequence(byte[] buf, int start, int end)
Create a rough character sequence around the raw byte buffer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int index)
int
length()
CharSequence
subSequence(int start, int end)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Field Detail
-
EMPTY
public static final RawCharSequence EMPTY
A zero-length character sequence.
-
-
Method Detail
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
length
public int length()
- Specified by:
length
in interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
toString
public String toString()
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
-