public interface StreamCache
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears and resets the cache.
|
OutputStream |
getOutputStream()
Get the current OutputStream.
|
int |
getSize()
Returns the current size of the stream.
|
int |
outputContents(OutputStream out)
Outputs the cached bytes to the given stream.
|
void |
write(byte[] data)
Convenience method for writing data to the stream cache.
|
OutputStream getOutputStream() throws IOException
IOException - if there is an IO errorvoid write(byte[] data)
throws IOException
data - byte array to writeIOException - if there is an IO errorint outputContents(OutputStream out) throws IOException
out - the stream to write toIOException - if there is an IO errorint getSize()
throws IOException
IOException - if there is an IO errorvoid clear()
throws IOException
IOException - if there is an IO errorCopyright © 2023 Apache Software Foundation. All rights reserved.