org.codehaus.plexus.archiver.tar
public static final class TarUnArchiver.UntarCompressionMethod extends EnumeratedAttribute
Field Summary | |
---|---|
static String | BZIP2
BZIP2 compression |
static String | GZIP
GZIP compression |
static String | NONE
No compression |
Constructor Summary | |
---|---|
UntarCompressionMethod()
Constructor | |
UntarCompressionMethod(String method)
Constructor |
Method Summary | |
---|---|
InputStream | decompress(File file, InputStream istream)
This method wraps the input stream with the
corresponding decompression method
|
String[] | getValues()
Get valid enumeration values
|
Parameters: file provides location information for BuildException istream input stream
Returns: input stream with on-the-fly decompression
Throws: IOException thrown by GZIPInputStream constructor BuildException thrown if bzip stream does not start with expected magic values
Returns: valid values