public class StringWriter extends Writer
Constructor and Description |
---|
StringWriter() |
StringWriter(int initialSize) |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method does nothing ...
|
void |
flush()
This method does nothing ...
|
StringBuffer |
getBuffer() |
String |
toString()
Default String representation: overriden by many classes.
|
void |
write(char[] buffer,
int o,
int c)
Note: an implementation of this method should use the 'lock' object
to synchronize with other methods ...
|
void |
write(int oneChar) |
void |
write(String str) |
void |
write(String str,
int offset,
int count) |
public StringWriter()
public StringWriter(int initialSize)
public void close() throws IOException
close
in class Writer
IOException
public void flush()
public StringBuffer getBuffer()
public String toString()
Object
public void write(char[] buffer, int o, int c)
Writer