jline
Class JLineStringBuilder

java.lang.Object
  extended by jline.JLineStringBuilder
All Implemented Interfaces:
Appendable, CharSequence, JLineBuffer

public class JLineStringBuilder
extends Object
implements JLineBuffer


Constructor Summary
JLineStringBuilder()
           
 
Method Summary
 Appendable append(char c)
           
 Appendable append(CharSequence s)
           
 Appendable append(CharSequence s, int start, int end)
           
 char charAt(int index)
           
 void delete(int start, int end)
           
 void deleteCharAt(int index)
           
 void insert(int offset, char c)
           
 void insert(int offset, CharSequence s)
           
 int length()
           
 void replace(int start, int end, String str)
           
 void setLength(int newLength)
           
 CharSequence subSequence(int start, int end)
           
 String substring(int start)
           
 String substring(int start, int end)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JLineStringBuilder

public JLineStringBuilder()
Method Detail

append

public Appendable append(CharSequence s)
Specified by:
append in interface Appendable
Specified by:
append in interface JLineBuffer

append

public Appendable append(char c)
                  throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

public Appendable append(CharSequence s,
                         int start,
                         int end)
                  throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

charAt

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

length

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

subSequence

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

delete

public void delete(int start,
                   int end)
Specified by:
delete in interface JLineBuffer

deleteCharAt

public void deleteCharAt(int index)
Specified by:
deleteCharAt in interface JLineBuffer

insert

public void insert(int offset,
                   char c)
Specified by:
insert in interface JLineBuffer

insert

public void insert(int offset,
                   CharSequence s)
Specified by:
insert in interface JLineBuffer

setLength

public void setLength(int newLength)
Specified by:
setLength in interface JLineBuffer

substring

public String substring(int start)
Specified by:
substring in interface JLineBuffer

substring

public String substring(int start,
                        int end)
Specified by:
substring in interface JLineBuffer

replace

public void replace(int start,
                    int end,
                    String str)
Specified by:
replace in interface JLineBuffer

toString

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


Copyright © 2002-2009 null. All Rights Reserved.