Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.lang.StringBuffer

Availability: JDK 1.0

public final class StringBuffer extends Object implements Serializable {
   // Public Constructors
      public StringBuffer();
      public StringBuffer(int length);
      public StringBuffer(String str);
   // Public Instance Methods
      public synchronized StringBuffer append(Object obj);
      public synchronized StringBuffer append(String str);
      public synchronized StringBuffer append(char[] str);
      public synchronized StringBuffer append(char[] str, int offset, int len);
      public StringBuffer append(boolean b);
      public synchronized StringBuffer append(char c);
      public StringBuffer append(int i);
      public StringBuffer append(long l);
      public StringBuffer append(float f);
      public StringBuffer append(double d);
      public int capacity();
      public synchronized char charAt(int index);
      public synchronized void ensureCapacity(int minimumCapacity);
      public synchronized void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin);
      public synchronized StringBuffer insert(int offset, Object obj);
      public synchronized StringBuffer insert(int offset, String str);
      public synchronized StringBuffer insert(int offset, char[] str);
      public StringBuffer insert(int offset, boolean b);
      public synchronized StringBuffer insert(int offset, char c);
      public StringBuffer insert(int offset, int i);
      public StringBuffer insert(int offset, long l);
      public StringBuffer insert(int offset, float f);
      public StringBuffer insert(int offset, double d);
      public int length();
      public synchronized StringBuffer reverse();
      public synchronized void setCharAt(int index, char ch);
      public synchronized void setLength(int newLength);
      public String toString();  // Overrides Object.toString()
}
Passed To:
ChoiceFormat.format(), DateFormat.format(), DecimalFormat.format(), Format.format(), MessageFormat.format(), NumberFormat.format(), SimpleDateFormat.format(), String.String().
Returned By:
ChoiceFormat.format(), DateFormat.format(), DecimalFormat.format(), Format.format(), MessageFormat.format(), NumberFormat.format(), SimpleDateFormat.format(), StringBuffer.append(), StringBuffer.insert(), StringBuffer.reverse(), StringWriter.getBuffer().

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.