| java.lang.Object com.google.gwt.emul.java.lang.StringBuffer
StringBuffer | final public class StringBuffer implements CharSequence(Code) | | A fast way to create strings using multiple appends. This implementation is
optimized for fast appends. Most methods will give expected performance
results, with the notable exception of
StringBuffer.setCharAt(int,char) , which
is extremely slow and should be avoided if possible.
|
Constructor Summary | |
public | StringBuffer() | public | StringBuffer(int ignoredLength) This implementation does not track capacity; using this constructor is
functionally equivalent to using the zero-argument constructor. | public | StringBuffer(String s) |
Method Summary | |
public StringBuffer | append(boolean x) | public StringBuffer | append(char x) | public StringBuffer | append(char[] x) | public StringBuffer | append(char[] x, int start, int len) | public StringBuffer | append(double x) | public StringBuffer | append(float x) | public StringBuffer | append(int x) | public StringBuffer | append(long x) | public StringBuffer | append(Object x) | public StringBuffer | append(String toAppend) | public StringBuffer | append(StringBuffer x) | public char | charAt(int index) | public StringBuffer | delete(int start, int end) | public StringBuffer | deleteCharAt(int start) | public void | getChars(int srcStart, int srcEnd, char[] dst, int dstStart) | public int | indexOf(String x) | public int | indexOf(String x, int start) | public StringBuffer | insert(int index, boolean x) | public StringBuffer | insert(int index, char x) | public StringBuffer | insert(int index, char[] x) | public StringBuffer | insert(int index, char[] x, int offset, int len) | public StringBuffer | insert(int index, double x) | public StringBuffer | insert(int index, float x) | public StringBuffer | insert(int index, int x) | public StringBuffer | insert(int index, long x) | public StringBuffer | insert(int index, Object x) | public StringBuffer | insert(int index, String x) | public int | lastIndexOf(String s) | public int | lastIndexOf(String s, int start) | public int | length() | public StringBuffer | replace(int start, int end, String toInsert) | public void | setCharAt(int index, char x) Warning! This method is much slower than the JRE implementation. | public void | setLength(int newLength) | public CharSequence | subSequence(int start, int end) | public String | substring(int begin) | public String | substring(int begin, int end) | public String | toString() |
StringBuffer | public StringBuffer()(Code) | | |
StringBuffer | public StringBuffer(int ignoredLength)(Code) | | This implementation does not track capacity; using this constructor is
functionally equivalent to using the zero-argument constructor.
|
charAt | public char charAt(int index)(Code) | | |
getChars | public void getChars(int srcStart, int srcEnd, char[] dst, int dstStart)(Code) | | |
lastIndexOf | public int lastIndexOf(String s, int start)(Code) | | |
length | public int length()(Code) | | |
setCharAt | public void setCharAt(int index, char x)(Code) | | Warning! This method is much slower than the JRE implementation. If
you need to do character level manipulation, you are strongly advised to
use a char[] directly.
|
setLength | public void setLength(int newLength)(Code) | | |
|
|