Interface TempSink
public interface TempSink
Temporary sink for duplicate servlet response stream. Cache stores are expected to provide its own implementation.
-
Method Summary
Modifier and TypeMethodDescriptionCreates an input stream to read from the sink.Create an output stream to write to the sink.longlength()Get the length of the sink.
-
Method Details
-
createOutputStream
Create an output stream to write to the sink.- Returns:
- Throws:
HttpCacheDataStreamException
-
createInputStream
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.
-