|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.archiver.util.EnumeratedAttribute
org.codehaus.plexus.archiver.tar.TarUnArchiver.UntarCompressionMethod
Valid Modes for Compression attribute to Untar Task
Field Summary | |
private static java.lang.String |
BZIP2
BZIP2 compression |
private static java.lang.String |
GZIP
GZIP compression |
private static java.lang.String |
NONE
No compression |
Fields inherited from class org.codehaus.plexus.archiver.util.EnumeratedAttribute |
value |
Constructor Summary | |
TarUnArchiver.UntarCompressionMethod()
Constructor |
|
TarUnArchiver.UntarCompressionMethod(java.lang.String method)
Constructor |
Method Summary | |
private java.io.InputStream |
decompress(java.io.File file,
java.io.InputStream istream)
This method wraps the input stream with the corresponding decompression method |
java.lang.String[] |
getValues()
Get valid enumeration values |
Methods inherited from class org.codehaus.plexus.archiver.util.EnumeratedAttribute |
containsValue, getIndex, getValue, indexOfValue, setValue, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final java.lang.String NONE
private static final java.lang.String GZIP
private static final java.lang.String BZIP2
Constructor Detail |
public TarUnArchiver.UntarCompressionMethod()
public TarUnArchiver.UntarCompressionMethod(java.lang.String method)
Method Detail |
public java.lang.String[] getValues()
getValues
in class EnumeratedAttribute
private java.io.InputStream decompress(java.io.File file, java.io.InputStream istream) throws java.io.IOException, ArchiverException
file
- provides location information for BuildExceptionistream
- input stream
java.io.IOException
- thrown by GZIPInputStream constructor
BuildException
- thrown if bzip stream does not
start with expected magic values
ArchiverException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |