JML

java.io
Class StringWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.StringWriter
All Implemented Interfaces:
Appendable, Closeable, Flushable

public class StringWriter
extends Writer


Field Summary
private  StringBuffer buf
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
StringWriter()
           
StringWriter(int)
           
 
Method Summary
 StringWriter append(char)
           
 Writer append(char)
           
 Appendable append(char)
           
 StringWriter append(CharSequence)
           
 Writer append(CharSequence)
           
 Appendable append(CharSequence)
           
 StringWriter append(CharSequence, int, int)
           
 Writer append(CharSequence, int, int)
           
 Appendable append(CharSequence, int, int)
           
 void close()
           
 void flush()
           
 StringBuffer getBuffer()
           
 String toString()
           
 void write(char[], int, int)
           
 void write(int)
           
 void write(String)
           
 void write(String, int, int)
           
 
Methods inherited from class java.io.Writer
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

buf

private StringBuffer buf
Constructor Detail

StringWriter

public StringWriter()

StringWriter

public StringWriter(int)
Method Detail

write

public void write(int)
Overrides:
write in class Writer

write

public void write(char[],
                  int,
                  int)

write

public void write(String)
Overrides:
write in class Writer

write

public void write(String,
                  int,
                  int)
Overrides:
write in class Writer

append

public StringWriter append(CharSequence)
Specified by:
append in interface Appendable
Overrides:
append in class Writer

append

public StringWriter append(CharSequence,
                           int,
                           int)
Specified by:
append in interface Appendable
Overrides:
append in class Writer

append

public StringWriter append(char)
Specified by:
append in interface Appendable
Overrides:
append in class Writer

toString

public String toString()
Overrides:
toString in class Object

getBuffer

public StringBuffer getBuffer()

flush

public void flush()

close

public void close()
           throws IOException
Throws:
IOException

append

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

append

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

append

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

append

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

append

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

append

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

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.