Package org.dmfs.jems2.charsequence
Class Ascii
java.lang.Object
org.dmfs.jems2.charsequence.Ascii
- All Implemented Interfaces:
CharSequence
A
CharSequence adapter to ASCII encoded byte arrays.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int i) intlength()subSequence(int i, int i1) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Constructor Details
-
Ascii
public Ascii(byte... data) -
Ascii
public Ascii(byte[] data, int start, int end)
-
-
Method Details
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int i) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-