public class CompressedFile extends Object
Constructor and Description |
---|
CompressedFile(File compressedFile)
A class that will take a compressed file.
|
Modifier and Type | Method and Description |
---|---|
ArchiveType |
getArchiveType()
Find out if the uncompressed file is an archive
|
String |
getDecompressedFilename()
Get the filename of the decompressed file.
|
InputStream |
getInputStream()
Get an InputStream for the decompressed file.
|
public CompressedFile(File compressedFile) throws InvalidFileTypeException
compressedFile
- A compressed file of type .gz or .bz2InvalidFileTypeException
public String getDecompressedFilename()
public InputStream getInputStream() throws IOException
IOException
public ArchiveType getArchiveType()
Copyright © 2016. All rights reserved.