JML

java.lang
Class StringBuffer

java.lang.Object
  extended byjava.lang.AbstractStringBuilder
      extended byjava.lang.StringBuffer
All Implemented Interfaces:
Appendable, CharSequence, Serializable

public final class StringBuffer
extends AbstractStringBuilder
implements Serializable, CharSequence


Field Summary
(package private)  int count
           
private static ObjectStreamField[] serialPersistentFields
           
(package private) static long serialVersionUID
           
(package private) static int[] sizeTable
           
(package private)  char[] value
           
 
Constructor Summary
StringBuffer()
           
StringBuffer(int)
           
StringBuffer(CharSequence)
           
StringBuffer(String)
           
 
Method Summary
 StringBuffer append(boolean)
           
 AbstractStringBuilder append(boolean)
           
 StringBuffer append(char)
           
 AbstractStringBuilder append(char)
           
 Appendable append(char)
           
 StringBuffer append(char[])
           
 AbstractStringBuilder append(char[])
           
 StringBuffer append(char[], int, int)
           
 AbstractStringBuilder append(char[], int, int)
           
 StringBuffer append(double)
           
 AbstractStringBuilder append(double)
           
 StringBuffer append(float)
           
 AbstractStringBuilder append(float)
           
 StringBuffer append(int)
           
 AbstractStringBuilder append(int)
           
 StringBuffer append(CharSequence)
           
 AbstractStringBuilder append(CharSequence)
           
 Appendable append(CharSequence)
           
 StringBuffer append(CharSequence, int, int)
           
 AbstractStringBuilder append(CharSequence, int, int)
           
 Appendable append(CharSequence, int, int)
           
 StringBuffer append(Object)
           
 AbstractStringBuilder append(Object)
           
 StringBuffer append(String)
           
 AbstractStringBuilder append(String)
           
 StringBuffer append(StringBuffer)
           
 AbstractStringBuilder append(StringBuffer)
           
 StringBuffer append(long)
           
 AbstractStringBuilder append(long)
           
 StringBuffer appendCodePoint(int)
           
 AbstractStringBuilder appendCodePoint(int)
           
 int capacity()
           
 char charAt(int)
           
 int codePointAt(int)
           
 int codePointBefore(int)
           
 int codePointCount(int, int)
           
 StringBuffer delete(int, int)
           
 AbstractStringBuilder delete(int, int)
           
 StringBuffer deleteCharAt(int)
           
 AbstractStringBuilder deleteCharAt(int)
           
 void ensureCapacity(int)
           
(package private)  void expandCapacity(int)
           
 void getChars(int, int, char[], int)
           
(package private)  char[] getValue()
           
 int indexOf(String)
           
 int indexOf(String, int)
           
 StringBuffer insert(int, boolean)
           
 AbstractStringBuilder insert(int, boolean)
           
 StringBuffer insert(int, char)
           
 AbstractStringBuilder insert(int, char)
           
 StringBuffer insert(int, char[])
           
 AbstractStringBuilder insert(int, char[])
           
 StringBuffer insert(int, char[], int, int)
           
 AbstractStringBuilder insert(int, char[], int, int)
           
 StringBuffer insert(int, double)
           
 AbstractStringBuilder insert(int, double)
           
 StringBuffer insert(int, float)
           
 AbstractStringBuilder insert(int, float)
           
 StringBuffer insert(int, int)
           
 AbstractStringBuilder insert(int, int)
           
 StringBuffer insert(int, CharSequence)
           
 AbstractStringBuilder insert(int, CharSequence)
           
 StringBuffer insert(int, CharSequence, int, int)
           
 AbstractStringBuilder insert(int, CharSequence, int, int)
           
 StringBuffer insert(int, Object)
           
 AbstractStringBuilder insert(int, Object)
           
 StringBuffer insert(int, String)
           
 AbstractStringBuilder insert(int, String)
           
 StringBuffer insert(int, long)
           
 AbstractStringBuilder insert(int, long)
           
 int lastIndexOf(String)
           
 int lastIndexOf(String, int)
           
 int length()
           
 int offsetByCodePoints(int, int)
           
private  void readObject(ObjectInputStream)
           
 StringBuffer replace(int, int, String)
           
 AbstractStringBuilder replace(int, int, String)
           
 StringBuffer reverse()
           
 AbstractStringBuilder reverse()
           
 void setCharAt(int, char)
           
 void setLength(int)
           
(package private) static int stringSizeOfInt(int)
           
(package private) static int stringSizeOfLong(long)
           
 CharSequence subSequence(int, int)
           
 String substring(int)
           
 String substring(int, int)
           
 String toString()
           
 void trimToSize()
           
private  void writeObject(ObjectOutputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.CharSequence
equals, hashCode
 

Field Detail

serialPersistentFields

private static final ObjectStreamField[] serialPersistentFields

serialVersionUID

static final long serialVersionUID

count

int count

value

char[] value

sizeTable

static final int[] sizeTable
Constructor Detail

StringBuffer

public StringBuffer()

StringBuffer

public StringBuffer(int)

StringBuffer

public StringBuffer(String)

StringBuffer

public StringBuffer(CharSequence)
Method Detail

length

public int length()
Specified by:
length in interface CharSequence
Overrides:
length in class AbstractStringBuilder

capacity

public int capacity()
Overrides:
capacity in class AbstractStringBuilder

ensureCapacity

public void ensureCapacity(int)
Overrides:
ensureCapacity in class AbstractStringBuilder

trimToSize

public void trimToSize()
Overrides:
trimToSize in class AbstractStringBuilder

setLength

public void setLength(int)
Overrides:
setLength in class AbstractStringBuilder

charAt

public char charAt(int)
Specified by:
charAt in interface CharSequence
Overrides:
charAt in class AbstractStringBuilder

codePointAt

public int codePointAt(int)
Overrides:
codePointAt in class AbstractStringBuilder

codePointBefore

public int codePointBefore(int)
Overrides:
codePointBefore in class AbstractStringBuilder

codePointCount

public int codePointCount(int,
                          int)
Overrides:
codePointCount in class AbstractStringBuilder

offsetByCodePoints

public int offsetByCodePoints(int,
                              int)
Overrides:
offsetByCodePoints in class AbstractStringBuilder

getChars

public void getChars(int,
                     int,
                     char[],
                     int)
Overrides:
getChars in class AbstractStringBuilder

setCharAt

public void setCharAt(int,
                      char)
Overrides:
setCharAt in class AbstractStringBuilder

append

public StringBuffer append(Object)
Overrides:
append in class AbstractStringBuilder

append

public StringBuffer append(String)
Overrides:
append in class AbstractStringBuilder

append

public StringBuffer append(StringBuffer)
Overrides:
append in class AbstractStringBuilder

append

public StringBuffer append(CharSequence)
Specified by:
append in interface Appendable
Overrides:
append in class AbstractStringBuilder

append

public StringBuffer append(CharSequence,
                           int,
                           int)
Specified by:
append in interface Appendable
Overrides:
append in class AbstractStringBuilder

append

public StringBuffer append(char[])
Overrides:
append in class AbstractStringBuilder

append

public StringBuffer append(char[],
                           int,
                           int)
Overrides:
append in class AbstractStringBuilder

append

public StringBuffer append(boolean)
Overrides:
append in class AbstractStringBuilder

append

public StringBuffer append(char)
Specified by:
append in interface Appendable
Overrides:
append in class AbstractStringBuilder

append

public StringBuffer append(int)
Overrides:
append in class AbstractStringBuilder

appendCodePoint

public StringBuffer appendCodePoint(int)
Overrides:
appendCodePoint in class AbstractStringBuilder

append

public StringBuffer append(long)
Overrides:
append in class AbstractStringBuilder

append

public StringBuffer append(float)
Overrides:
append in class AbstractStringBuilder

append

public StringBuffer append(double)
Overrides:
append in class AbstractStringBuilder

delete

public StringBuffer delete(int,
                           int)
Overrides:
delete in class AbstractStringBuilder

deleteCharAt

public StringBuffer deleteCharAt(int)
Overrides:
deleteCharAt in class AbstractStringBuilder

replace

public StringBuffer replace(int,
                            int,
                            String)
Overrides:
replace in class AbstractStringBuilder

substring

public String substring(int)
Overrides:
substring in class AbstractStringBuilder

subSequence

public CharSequence subSequence(int,
                                int)
Specified by:
subSequence in interface CharSequence
Overrides:
subSequence in class AbstractStringBuilder

substring

public String substring(int,
                        int)
Overrides:
substring in class AbstractStringBuilder

insert

public StringBuffer insert(int,
                           char[],
                           int,
                           int)
Overrides:
insert in class AbstractStringBuilder

insert

public StringBuffer insert(int,
                           Object)
Overrides:
insert in class AbstractStringBuilder

insert

public StringBuffer insert(int,
                           String)
Overrides:
insert in class AbstractStringBuilder

insert

public StringBuffer insert(int,
                           char[])
Overrides:
insert in class AbstractStringBuilder

insert

public StringBuffer insert(int,
                           CharSequence)
Overrides:
insert in class AbstractStringBuilder

insert

public StringBuffer insert(int,
                           CharSequence,
                           int,
                           int)
Overrides:
insert in class AbstractStringBuilder

insert

public StringBuffer insert(int,
                           boolean)
Overrides:
insert in class AbstractStringBuilder

insert

public StringBuffer insert(int,
                           char)
Overrides:
insert in class AbstractStringBuilder

insert

public StringBuffer insert(int,
                           int)
Overrides:
insert in class AbstractStringBuilder

insert

public StringBuffer insert(int,
                           long)
Overrides:
insert in class AbstractStringBuilder

insert

public StringBuffer insert(int,
                           float)
Overrides:
insert in class AbstractStringBuilder

insert

public StringBuffer insert(int,
                           double)
Overrides:
insert in class AbstractStringBuilder

indexOf

public int indexOf(String)
Overrides:
indexOf in class AbstractStringBuilder

indexOf

public int indexOf(String,
                   int)
Overrides:
indexOf in class AbstractStringBuilder

lastIndexOf

public int lastIndexOf(String)
Overrides:
lastIndexOf in class AbstractStringBuilder

lastIndexOf

public int lastIndexOf(String,
                       int)
Overrides:
lastIndexOf in class AbstractStringBuilder

reverse

public StringBuffer reverse()
Overrides:
reverse in class AbstractStringBuilder

toString

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

writeObject

private void writeObject(ObjectOutputStream)
                  throws IOException
Throws:
IOException

readObject

private void readObject(ObjectInputStream)
                 throws IOException,
                        ClassNotFoundException
Throws:
IOException
ClassNotFoundException

reverse

public volatile AbstractStringBuilder reverse()
Overrides:
reverse in class AbstractStringBuilder

insert

public volatile AbstractStringBuilder insert(int,
                                             double)
Overrides:
insert in class AbstractStringBuilder

insert

public volatile AbstractStringBuilder insert(int,
                                             float)
Overrides:
insert in class AbstractStringBuilder

insert

public volatile AbstractStringBuilder insert(int,
                                             long)
Overrides:
insert in class AbstractStringBuilder

insert

public volatile AbstractStringBuilder insert(int,
                                             int)
Overrides:
insert in class AbstractStringBuilder

insert

public volatile AbstractStringBuilder insert(int,
                                             char)
Overrides:
insert in class AbstractStringBuilder

insert

public volatile AbstractStringBuilder insert(int,
                                             boolean)
Overrides:
insert in class AbstractStringBuilder

insert

public volatile AbstractStringBuilder insert(int,
                                             CharSequence,
                                             int,
                                             int)
Overrides:
insert in class AbstractStringBuilder

insert

public volatile AbstractStringBuilder insert(int,
                                             CharSequence)
Overrides:
insert in class AbstractStringBuilder

insert

public volatile AbstractStringBuilder insert(int,
                                             char[])
Overrides:
insert in class AbstractStringBuilder

insert

public volatile AbstractStringBuilder insert(int,
                                             String)
Overrides:
insert in class AbstractStringBuilder

insert

public volatile AbstractStringBuilder insert(int,
                                             Object)
Overrides:
insert in class AbstractStringBuilder

insert

public volatile AbstractStringBuilder insert(int,
                                             char[],
                                             int,
                                             int)
Overrides:
insert in class AbstractStringBuilder

replace

public volatile AbstractStringBuilder replace(int,
                                              int,
                                              String)
Overrides:
replace in class AbstractStringBuilder

deleteCharAt

public volatile AbstractStringBuilder deleteCharAt(int)
Overrides:
deleteCharAt in class AbstractStringBuilder

appendCodePoint

public volatile AbstractStringBuilder appendCodePoint(int)
Overrides:
appendCodePoint in class AbstractStringBuilder

delete

public volatile AbstractStringBuilder delete(int,
                                             int)
Overrides:
delete in class AbstractStringBuilder

append

public volatile AbstractStringBuilder append(double)
Overrides:
append in class AbstractStringBuilder

append

public volatile AbstractStringBuilder append(float)
Overrides:
append in class AbstractStringBuilder

append

public volatile AbstractStringBuilder append(long)
Overrides:
append in class AbstractStringBuilder

append

public volatile AbstractStringBuilder append(int)
Overrides:
append in class AbstractStringBuilder

append

public volatile AbstractStringBuilder append(char)
Specified by:
append in interface Appendable
Overrides:
append in class AbstractStringBuilder

append

public volatile AbstractStringBuilder append(boolean)
Overrides:
append in class AbstractStringBuilder

append

public volatile AbstractStringBuilder append(char[],
                                             int,
                                             int)
Overrides:
append in class AbstractStringBuilder

append

public volatile AbstractStringBuilder append(char[])
Overrides:
append in class AbstractStringBuilder

append

public volatile AbstractStringBuilder append(CharSequence,
                                             int,
                                             int)
Specified by:
append in interface Appendable
Overrides:
append in class AbstractStringBuilder

append

public volatile AbstractStringBuilder append(CharSequence)
Specified by:
append in interface Appendable
Overrides:
append in class AbstractStringBuilder

append

public volatile AbstractStringBuilder append(StringBuffer)
Overrides:
append in class AbstractStringBuilder

append

public volatile AbstractStringBuilder append(String)
Overrides:
append in class AbstractStringBuilder

append

public volatile AbstractStringBuilder append(Object)
Overrides:
append in class AbstractStringBuilder

append

public volatile Appendable append(char)
                           throws IOException
Specified by:
append in interface Appendable
Overrides:
append in class AbstractStringBuilder
Throws:
IOException

append

public volatile Appendable append(CharSequence,
                                  int,
                                  int)
                           throws IOException
Specified by:
append in interface Appendable
Overrides:
append in class AbstractStringBuilder
Throws:
IOException

append

public volatile Appendable append(CharSequence)
                           throws IOException
Specified by:
append in interface Appendable
Overrides:
append in class AbstractStringBuilder
Throws:
IOException

expandCapacity

void expandCapacity(int)

stringSizeOfInt

static int stringSizeOfInt(int)

stringSizeOfLong

static int stringSizeOfLong(long)

getValue

final char[] getValue()

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.