-
- All Known Implementing Classes:
CompressorStreamFactory
public interface CompressorStreamProviderCreates CompressorCompressorInputStreams andCompressorOutputStreams.- Since:
- 1.13
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompressorInputStreamcreateCompressorInputStream(java.lang.String name, java.io.InputStream in, boolean decompressUntilEOF)Creates a compressor input stream from a compressor name and an input stream.CompressorOutputStream<?>createCompressorOutputStream(java.lang.String name, java.io.OutputStream out)Creates a compressor output stream from a compressor name and an output stream.java.util.Set<java.lang.String>getInputStreamCompressorNames()Gets all the input stream compressor names for this providerjava.util.Set<java.lang.String>getOutputStreamCompressorNames()Gets all the output stream compressor names for this provider
-
-
-
Method Detail
-
createCompressorInputStream
CompressorInputStream createCompressorInputStream(java.lang.String name, java.io.InputStream in, boolean decompressUntilEOF) throws CompressorException
Creates a compressor input stream from a compressor name and an input stream.- Parameters:
name- of the compressor, i.e. , , , , , , , orin- the input streamdecompressUntilEOF- if true, decompress until the end of the input; if false, stop after the first stream and leave the input position to point to the next byte after the stream. This setting applies to the gzip, bzip2 and XZ formats only.- Returns:
- compressor input stream
- Throws:
CompressorException- if the compressor name is not knownjava.lang.IllegalArgumentException- if the name or input stream is null
-
createCompressorOutputStream
CompressorOutputStream<?> createCompressorOutputStream(java.lang.String name, java.io.OutputStream out) throws CompressorException
Creates a compressor output stream from a compressor name and an output stream.- Parameters:
name- the compressor name, i.e. , , , orout- the output stream- Returns:
- the compressor output stream
- Throws:
CompressorException- if the archiver name is not knownjava.lang.IllegalArgumentException- if the archiver name or stream is null
-
getInputStreamCompressorNames
java.util.Set<java.lang.String> getInputStreamCompressorNames()
Gets all the input stream compressor names for this provider- Returns:
- all the input compressor names for this provider
-
getOutputStreamCompressorNames
java.util.Set<java.lang.String> getOutputStreamCompressorNames()
Gets all the output stream compressor names for this provider- Returns:
- all the output compressor names for this provider
-
-