Package org.fusesource.jansi
Class AnsiString
java.lang.Object
org.fusesource.jansi.AnsiString
- All Implemented Interfaces:
CharSequence
An ANSI string which reports the size of rendered text correctly (ignoring any ANSI escapes).
- Since:
- 1.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) private CharSequencechew(CharSequence str) booleangetPlain()inthashCode()intlength()subSequence(int start, int end) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Field Details
-
encoded
-
plain
-
-
Constructor Details
-
AnsiString
-
-
Method Details
-
chew
-
getEncoded
-
getPlain
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
equals
-
hashCode
public int hashCode() -
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-