public static final class Untar.UntarCompressionMethod extends EnumeratedAttribute
value
Constructor and Description |
---|
UntarCompressionMethod()
Constructor
|
Modifier and Type | Method and Description |
---|---|
InputStream |
decompress(String name,
InputStream istream)
This method wraps the input stream with the
corresponding decompression method
|
String[] |
getValues()
Get valid enumeration values
|
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
public InputStream decompress(String name, InputStream istream) throws IOException, BuildException
name
- provides location information for BuildExceptionistream
- input streamIOException
- thrown by GZIPInputStream constructorBuildException
- thrown if bzip stream does not
start with expected magic valuespublic String[] getValues()
getValues
in class EnumeratedAttribute