Package emissary.util.io
Class BufferedWriterOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- emissary.util.io.BufferedWriterOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class BufferedWriterOutputStream extends OutputStream
BufferedWriterOutputStream: a subclass to support writing bytes to a Writer. This implementation also buffers the output to avoid multiple array allocations. Each byte is written as a seperate character (ISO8859-1 encoding per se).
-
-
Constructor Summary
Constructors Constructor Description BufferedWriterOutputStream(Writer writer)
BufferedWriterOutputStream(Writer writer, int blockSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flush()
void
write(byte[] bytes)
void
write(byte[] bytes, int start, int length)
void
write(int b)
-
Methods inherited from class java.io.OutputStream
close, nullOutputStream
-
-
-
-
Method Detail
-
write
public void write(byte[] bytes, int start, int length) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] bytes) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
-