class WritingBuffer extends Writer
| Modifier and Type | Field and Description |
|---|---|
private char[] |
buffer |
private int |
fill |
private Writer |
writer |
| Constructor and Description |
|---|
WritingBuffer(Writer writer) |
WritingBuffer(Writer writer,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Does not close or flush the wrapped writer.
|
void |
flush()
Flushes the internal buffer but does not flush the wrapped writer.
|
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str,
int off,
int len) |
private final Writer writer
private final char[] buffer
private int fill
WritingBuffer(Writer writer)
WritingBuffer(Writer writer, int bufferSize)
public void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionCopyright © 2011–2016 David R. Smith. All rights reserved.