/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This source file is part of SableVM classlib-stubs. * * * * See the file "LICENSE" for the copyright information and for * * the terms and conditions for copying, distribution and * * modification of this source file. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ package java.lang; import java.io.Serializable; public final class StringBuffer extends Object implements Serializable, CharSequence { public StringBuffer() { } public StringBuffer(int capacity) { } public StringBuffer(String str) { } public StringBuffer(CharSequence seq) { } native public int length(); native public int capacity(); native public void ensureCapacity(int minimumCapacity); native public void trimToSize(); native public void setLength(int newLength); native public char charAt(int index); native public int codePointAt(int index); native public int codePointBefore(int index); native public int codePointCount(int beginIndex, int endIndex); native public int offsetByCodePoints(int index, int codePointOffset); native public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin); native public void setCharAt(int index, char ch); native public StringBuffer append(Object obj); native public StringBuffer append(String str); native public StringBuffer append(StringBuffer sb); native public StringBuffer append(CharSequence s); native public StringBuffer append(CharSequence s, int start, int end); native public StringBuffer append(char[] str); native public StringBuffer append(char[] str, int offset, int len); native public StringBuffer append(boolean b); native public StringBuffer append(char c); native public StringBuffer append(int i); native public StringBuffer appendCodePoint(int codePoint); native public StringBuffer append(long lng); native public StringBuffer append(float f); native public StringBuffer append(double d); native public StringBuffer delete(int start, int end); native public StringBuffer deleteCharAt(int index); native public StringBuffer replace(int start, int end, String str); native public String substring(int start); native public CharSequence subSequence(int start, int end); native public String substring(int start, int end); native public StringBuffer insert(int index, char[] str, int offset, int len); native public StringBuffer insert(int offset, Object obj); native public StringBuffer insert(int offset, String str); native public StringBuffer insert(int offset, char[] str); native public StringBuffer insert(int dstOffset, CharSequence s); native public StringBuffer insert(int dstOffset, CharSequence s, int start, int end); native public StringBuffer insert(int offset, boolean b); native public StringBuffer insert(int offset, char c); native public StringBuffer insert(int offset, int i); native public StringBuffer insert(int offset, long l); native public StringBuffer insert(int offset, float f); native public StringBuffer insert(int offset, double d); native public int indexOf(String str); native public int indexOf(String str, int fromIndex); native public int lastIndexOf(String str); native public int lastIndexOf(String str, int fromIndex); native public StringBuffer reverse(); native public String toString(); }