Interface TempSink
-
public interface TempSinkTemporary sink for duplicate servlet response stream. Cache stores are expected to provide its own implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamcreateInputStream()Creates an input stream to read from the sink.OutputStreamcreateOutputStream()Create an output stream to write to the sink.longlength()Get the length of the sink.
-
-
-
Method Detail
-
createOutputStream
OutputStream createOutputStream() throws HttpCacheDataStreamException
Create an output stream to write to the sink.- Returns:
- Throws:
HttpCacheDataStreamException
-
createInputStream
InputStream createInputStream() throws HttpCacheDataStreamException
Creates an input stream to read from the sink.- Returns:
- Throws:
HttpCacheDataStreamException
-
length
long length()
Get the length of the sink.- Returns:
- Length of sink in bytes or -1 if unknown.
-
-