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 TypeMethodDescriptionchar
charAt
(int index) private CharSequence
chew
(CharSequence str) boolean
getPlain()
int
hashCode()
int
length()
subSequence
(int start, int end) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
length
public int length()- Specified by:
length
in interfaceCharSequence
-
equals
-
hashCode
public int hashCode() -
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-