Closeable
, Flushable
, Appendable
, AutoCloseable
public 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 AutoCloseable
close
in interface Closeable
close
in class Writer
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void write(char[] chars, int offset, int length) throws IOException
write
in class Writer
IOException