public final class AsyncBufferedOutputStream extends FilterOutputStream
out| Constructor and Description |
|---|
AsyncBufferedOutputStream(OutputStream out)
Creates an asynchronous buffered output stream with 8K buffer and 5 maximal
buffers.
|
AsyncBufferedOutputStream(OutputStream out,
int bufSize)
Creates an asynchronous buffered output stream with defined buffersize and
5 maximal buffers.
|
AsyncBufferedOutputStream(OutputStream out,
int bufSize,
int maxBuffers)
Creates an asynchronous buffered output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush()
Flushes this buffered output stream.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len)
Writes
len bytes from the specified byte array starting at
offset off to this buffered output stream. |
void |
write(int b)
Writes the specified byte to this buffered output stream.
|
public AsyncBufferedOutputStream(OutputStream out)
public AsyncBufferedOutputStream(OutputStream out, int bufSize)
public AsyncBufferedOutputStream(OutputStream out, int bufSize, int maxBuffers)
out - the outputstream to layer on.bufSize - the buffer size.maxBuffers - the number of buffers to keep in parallel.public void write(int b)
throws IOException
write in class FilterOutputStreamb - the byte to be written.IOException - if an I/O error occurs.public void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
len bytes from the specified byte array starting at
offset off to this buffered output stream.write in class FilterOutputStreamb - the data.off - the start offset in the data.len - the number of bytes to write.IOException - if an I/O error occurs.public void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOException - if an I/O error occurs.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionCopyright © 2016. All rights reserved.