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.FilterOutputStream
Provides an InputStream to read all data written to this OutputStream.- Since:
- 1.3
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StreamBridge()
protected
StreamBridge(java.io.OutputStream out)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) java.io.InputStream
getInput()
Provides the input view.(package private) abstract java.io.InputStream
getInputView()
Creates the input view.(package private) void
stop()
Closes input and output and releases all associated resources.
-
-
-
Method Detail
-
getInput
java.io.InputStream getInput() throws java.io.IOException
Provides the input view.- Throws:
java.io.IOException
-
getInputView
abstract java.io.InputStream getInputView() throws java.io.IOException
Creates 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
-
-