org.apache.tools.ant.taskdefs
public static final class Untar.UntarCompressionMethod extends EnumeratedAttribute
Constructor Summary | |
---|---|
UntarCompressionMethod()
Constructor |
Method Summary | |
---|---|
InputStream | decompress(String name, InputStream istream)
This method wraps the input stream with the
corresponding decompression method
|
String[] | getValues()
Get valid enumeration values
|
Parameters: name 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