public interface CompressionFormat
CompressionFormatFactory
.Modifier and Type | Method and Description |
---|---|
org.apache.commons.compress.compressors.CompressorInputStream |
compressorInputStream(InputStream is) |
org.apache.commons.compress.compressors.CompressorOutputStream |
compressorOutputStream(OutputStream os) |
org.apache.commons.compress.compressors.CompressorOutputStream |
create(File compressedFile)
Creates a new compressed file.
|
String |
getCompressedFileName(String fileName)
Maps the given fileName to the name that a corresponding compressed file would have.
|
String |
getName() |
String |
getUncompressedFileName(String fileName)
Maps the given fileName to the name that a corresponding uncompressed file would have.
|
boolean |
isCompressedFileName(String fileName) |
boolean |
matches(byte[] signature,
int signatureLength) |
org.apache.commons.compress.compressors.CompressorInputStream |
open(File compressedFile)
Opens an existing compressed file for reading.
|
String getName()
boolean isCompressedFileName(String fileName)
CompressionFormat
String getCompressedFileName(String fileName)
String getUncompressedFileName(String fileName)
org.apache.commons.compress.compressors.CompressorInputStream compressorInputStream(InputStream is) throws IOException
CompressorInputStream
for this format which reads from the given input streamIOException
org.apache.commons.compress.compressors.CompressorInputStream open(File compressedFile) throws IOException
CompressorInputStream
for this format which reads from the given compressedFileIOException
org.apache.commons.compress.compressors.CompressorOutputStream compressorOutputStream(OutputStream os) throws IOException, org.apache.commons.compress.compressors.CompressorException
CompressorOutputStream
for this format which writes to the given output
streamorg.apache.commons.compress.compressors.CompressorException
- Creation of compressed contents in in this format is not supportedIOException
org.apache.commons.compress.compressors.CompressorOutputStream create(File compressedFile) throws IOException, org.apache.commons.compress.compressors.CompressorException
CompressorOutputStream
for this format which writes to the given compressedFile
org.apache.commons.compress.compressors.CompressorException
- Creation of compressed files in in this format is not supportedIOException
boolean matches(byte[] signature, int signatureLength)
Copyright © 2018 Arno Unkrig. All rights reserved.