org.fusesource.jansi
Class AnsiString

java.lang.Object
  extended by org.fusesource.jansi.AnsiString
All Implemented Interfaces:
CharSequence

public class AnsiString
extends Object
implements CharSequence

An ANSI string which reports the size of rendered text correctly (ignoring any ANSI escapes).

Since:
1.1
Author:
Jason Dillon

Constructor Summary
AnsiString(CharSequence str)
           
 
Method Summary
 char charAt(int index)
           
 boolean equals(Object obj)
           
 CharSequence getEncoded()
           
 CharSequence getPlain()
           
 int hashCode()
           
 int length()
           
 CharSequence subSequence(int start, int end)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnsiString

public AnsiString(CharSequence str)
Method Detail

getEncoded

public CharSequence getEncoded()

getPlain

public CharSequence getPlain()

charAt

public char charAt(int index)
Specified by:
charAt in interface CharSequence

subSequence

public CharSequence subSequence(int start,
                                int end)
Specified by:
subSequence in interface CharSequence

length

public int length()
Specified by:
length in interface CharSequence

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Specified by:
toString in interface CharSequence
Overrides:
toString in class Object


Copyright © 2009-2011 FuseSource, Corp.. All Rights Reserved.