java.io
Class StringWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.StringWriter

public class StringWriter
extends Writer


Constructor Summary
StringWriter()
           
StringWriter(int size)
           
 
Method Summary
 Writer append(CharSequence str, int start, int end)
           
 void close()
           
 void flush()
           
 StringBuffer getBuffer()
           
 String toString()
           
 void write(char[] c, int off, int len)
           
 void write(int c)
           
 void write(String str, int off, int len)
           
 
Methods inherited from class java.io.Writer
append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringWriter

public StringWriter()

StringWriter

public StringWriter(int size)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in class Writer
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in class Writer
Throws:
IOException

getBuffer

public StringBuffer getBuffer()

toString

public String toString()
Overrides:
toString in class Object

append

public Writer append(CharSequence str,
                     int start,
                     int end)
              throws IOException
Overrides:
append in class Writer
Throws:
IOException

write

public void write(int c)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(char[] c,
                  int off,
                  int len)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException

write

public void write(String str,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException