public final class BufferOutput
extends java.io.OutputStream
| Constructor and Description |
|---|
BufferOutput(java.io.OutputStream out)
Constructor with a default buffer size.
|
BufferOutput(java.io.OutputStream out,
int bufs)
Constructor with a specific buffer size.
|
BufferOutput(java.lang.String file)
Constructor.
|
public BufferOutput(java.lang.String file)
throws java.io.IOException
file - target filejava.io.IOException - I/O exceptionpublic BufferOutput(java.io.OutputStream out)
out - the stream to write topublic BufferOutput(java.io.OutputStream out,
int bufs)
out - the stream to write tobufs - buffer sizepublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException