Closeable, Flushable, Appendable, AutoCloseablepublic class AsciiWriter extends Writer
| Constructor | Description |
|---|---|
AsciiWriter(OutputStream os) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
flushes and closes underlying OutputStream.
|
void |
flush() |
flushes underlying OutputStream
|
void |
write(char[] chars,
int offset,
int length) |
All other Writer methods vector through this, so this is the only one that must be overridden.
|
public AsciiWriter(OutputStream os)
os - need not be buffered as this class bufferspublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void write(char[] chars,
int offset,
int length)
throws IOException
write in class WriterIOException