public abstract class OutputStreamWithBuffer extends java.io.OutputStream implements ByteAppendable
Constructor and Description |
---|
OutputStreamWithBuffer() |
Modifier and Type | Method and Description |
---|---|
abstract byte[] |
getBuffer()
Returns the stream's buffer.
|
abstract int |
getBufferOffset()
Returns the stream's buffer offset.
|
abstract boolean |
isClosed() |
abstract byte[] |
nextBuffer(int offset)
Returns the next buffer.
|
abstract void |
setBufferOffset(int offset)
Sets the stream's buffer length.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write, write
public abstract byte[] getBuffer() throws java.io.IOException
java.io.IOException
public abstract int getBufferOffset() throws java.io.IOException
java.io.IOException
public abstract void setBufferOffset(int offset) throws java.io.IOException
java.io.IOException
public abstract byte[] nextBuffer(int offset) throws java.io.IOException
length
- the length of the completed bufferjava.io.IOException
public abstract boolean isClosed()