Class StreamBridge
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.apache.commons.compress.compressors.pack200.StreamBridge
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
- Direct Known Subclasses:
InMemoryCachingStreamBridge,TempFileCachingStreamBridge
abstract class StreamBridge extends java.io.FilterOutputStreamProvides an InputStream to read all data written to this OutputStream.- Since:
- 1.3
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStreamBridge()protectedStreamBridge(java.io.OutputStream out)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) java.io.InputStreamgetInput()Provides the input view.(package private) abstract java.io.InputStreamgetInputView()Creates the input view.(package private) voidstop()Closes input and output and releases all associated resources.
-
-
-
Method Detail
-
getInput
java.io.InputStream getInput() throws java.io.IOExceptionProvides the input view.- Throws:
java.io.IOException
-
getInputView
abstract java.io.InputStream getInputView() throws java.io.IOExceptionCreates the input view.- Throws:
java.io.IOException
-
stop
void stop() throws java.io.IOException
Closes input and output and releases all associated resources.- Throws:
java.io.IOException
-
-