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 voidflush()voidwrite(byte[] bytes)voidwrite(byte[] bytes, int start, int length)voidwrite(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:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] bytes) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
-