InMemoryStreamCache
, TempFileStreamCache
public interface StreamCache
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
Clears and resets the cache.
|
java.io.OutputStream |
getOutputStream() |
Get the current OutputStream.
|
int |
getSize() |
Returns the current size of the stream.
|
int |
outputContents(java.io.OutputStream out) |
Outputs the cached bytes to the given stream.
|
void |
write(byte[] data) |
Convenience method for writing data to the stream cache.
|
java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
- if there is an IO errorvoid write(byte[] data) throws java.io.IOException
data
- byte array to writejava.io.IOException
- if there is an IO errorint outputContents(java.io.OutputStream out) throws java.io.IOException
out
- the stream to write tojava.io.IOException
- if there is an IO errorint getSize() throws java.io.IOException
java.io.IOException
- if there is an IO errorvoid clear() throws java.io.IOException
java.io.IOException
- if there is an IO errorCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.