public abstract class AbstractBufferedOutputStream extends OutputStream
OutputStream data to a destination in chunks.| Constructor and Description |
|---|
AbstractBufferedOutputStream(int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
available()
Provides the amount of buffer that is left to be written to.
|
void |
close() |
void |
flush() |
void |
write(int b) |
protected abstract void |
writeBuffer(byte[] buf)
Writes the buffer to the destination after it is either full, or has been flushed.
|
write, writeprotected abstract void writeBuffer(byte[] buf)
throws IOException
buf - data to writeIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionprotected int available()
Copyright © 2014 Calrissian. All rights reserved.