Class CompressorOutputStream<T extends OutputStream>
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.commons.compress.compressors.CompressorOutputStream<T>
- Type Parameters:
T
- The underlying OutputStream type.
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Direct Known Subclasses:
BlockLZ4CompressorOutputStream
,BZip2CompressorOutputStream
,DeflateCompressorOutputStream
,FramedLZ4CompressorOutputStream
,FramedSnappyCompressorOutputStream
,GzipCompressorOutputStream
,LZMACompressorOutputStream
,Pack200CompressorOutputStream
,SnappyCompressorOutputStream
,XZCompressorOutputStream
,ZstdCompressorOutputStream
Abstracts all classes that compress an output stream.
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
ConstructorDescriptionConstructs a new instance without a backing OutputStream.CompressorOutputStream
(T out) Creates an output stream filter built on top of the specified underlying output stream. -
Method Summary
-
Constructor Details
-
CompressorOutputStream
public CompressorOutputStream()Constructs a new instance without a backing OutputStream.You must initialize
this.out
after construction. -
CompressorOutputStream
Creates an output stream filter built on top of the specified underlying output stream.- Parameters:
out
- the underlying output stream to be assigned to the fieldthis.out
for later use, ornull
if this instance is to be created without an underlying stream.- Since:
- 1.27.0
-
-
Method Details
-
out
Gets the underlying output stream.- Returns:
- the underlying output stream.
- Since:
- 1.27.0
-