public final class BufferOutput extends OutputStream
Constructor and Description |
---|
BufferOutput(OutputStream os)
Constructor with a default buffer size.
|
BufferOutput(OutputStream os,
int bufs)
Constructor with a specific buffer size.
|
BufferOutput(String file)
Constructor.
|
public BufferOutput(String file) throws IOException
file
- target fileIOException
- I/O exceptionpublic BufferOutput(OutputStream os)
os
- the stream to write topublic BufferOutput(OutputStream os, int bufs)
os
- the stream to write tobufs
- buffer sizepublic void write(int b) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2005–2015 BaseX Team. All rights reserved.