public class MemoryStringWriter
extends java.io.Writer
Constructor and Description |
---|
MemoryStringWriter()
Create a new character-stream writer whose critical sections will synchronize on the writer itself.
|
MemoryStringWriter(int bufferSize)
Create a new character-stream writer whose critical sections will synchronize on the writer itself.
|
public MemoryStringWriter()
public MemoryStringWriter(int bufferSize)
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
cbuf
- Array of charactersoff
- Offset from which to start writing characterslen
- Number of characters to writejava.io.IOException
- If an I/O error occurspublic void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
- If an I/O error occurspublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
java.io.IOException
- If an I/O error occurspublic java.lang.String toString()
toString
in class java.lang.Object