public class AsciiWriter extends Writer
| Constructor and Description |
|---|
AsciiWriter(OutputStream os) |
| Modifier and Type | Method and 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 Closeableclose in interface AutoCloseableclose 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