|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Buffer
The Buffer
interface defines an API, which will be
implemented by buffering output channel implementations to facilitate
stack management regardless of whether the channel is stream or writer
based.
Method Summary | |
---|---|
void |
flushBuffer()
Flushes the current contents of the buffer to the output destination without forcing the destination to flush its contents. |
int |
getBufferSize()
Returns the current size of the buffer. |
void |
resetBuffer()
Removes the contents of the buffer. |
void |
setBufferSize(int buffersize)
Sets the new size of the buffer. |
Method Detail |
---|
void setBufferSize(int buffersize)
buffersize
- The new size of the buffer. The interpretation of
negative or zero values is up to the implementation.
IllegalStateException
- may be thrown if the implementation may
not currently change the size of the buffer.int getBufferSize()
void flushBuffer() throws IOException
IOException
- May be thrown if an error occurrs flushing the
contents of the buffer.void resetBuffer()
IllegalStateException
- may be thrown if the implementation
is not willing to clear the buffer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |