public class AsciiWriter
extends java.io.Writer
| Constructor and Description |
|---|
AsciiWriter(java.io.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(java.io.OutputStream os)
os - need not be buffered as this class bufferspublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOExceptionpublic void write(char[] chars,
int offset,
int length)
throws java.io.IOException
write in class java.io.Writerjava.io.IOException