java.io
Class StringWriter
java.lang.Object
java.io.Writer
java.io.StringWriter
public class StringWriter
- extends Writer
StringWriter
public StringWriter()
StringWriter
public StringWriter(int size)
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