|
TrueZIP 6.8.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.schlichtherle.io.archive.spi.AbstractArchiveDriver
de.schlichtherle.io.archive.tar.TarDriver
de.schlichtherle.io.archive.tar.TarGZipDriver
public class TarGZipDriver
An archive driver which builds TAR files compressed with GZIP. Instances of this class are immutable.
| Nested Class Summary | |
|---|---|
static class |
TarGZipDriver.GZIPOutputStream
|
| Nested classes/interfaces inherited from class de.schlichtherle.io.archive.spi.AbstractArchiveDriver |
|---|
AbstractArchiveDriver.InconsistentCharsetSupportError |
| Field Summary | |
|---|---|
static int |
DEFAULT_LEVEL
The default compression level to use when writing a GZIP output stream, which is 9. |
| Fields inherited from class de.schlichtherle.io.archive.tar.TarDriver |
|---|
DEFAULT_CHARSET |
| Constructor Summary | |
|---|---|
TarGZipDriver()
Equivalent to this(DEFAULT_CHARSET, null, null, DEFAULT_LEVEL). |
|
TarGZipDriver(int level)
Equivalent to this(DEFAULT_CHARSET, null, null, level). |
|
TarGZipDriver(String charset)
Equivalent to this(charset, null, null, DEFAULT_LEVEL). |
|
TarGZipDriver(String charset,
Icon openIcon,
Icon closedIcon,
int level)
Constructs a new TAR.GZ driver. |
|
| Method Summary | |
|---|---|
protected InputStream |
createInputStream(Archive archive,
ReadOnlyFile rof)
Returns a new InputStream to read the contents from the
given ReadOnlyFile from. |
protected TarOutputArchive |
createTarOutputArchive(Archive archive,
OutputStream out,
TarInputArchive source)
|
int |
getLevel()
Returns the value of the property preambled which was
provided to the constructor. |
| Methods inherited from class de.schlichtherle.io.archive.tar.TarDriver |
|---|
createArchiveEntry, createInputArchive, createOutputArchive, createTarInputArchive |
| Methods inherited from class de.schlichtherle.io.archive.spi.AbstractArchiveDriver |
|---|
ensureEncodable, getCharset, getClosedIcon, getEncoding, getOpenIcon |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.schlichtherle.io.archive.spi.ArchiveDriver |
|---|
equals, hashCode |
| Field Detail |
|---|
public static final int DEFAULT_LEVEL
| Constructor Detail |
|---|
public TarGZipDriver()
this(DEFAULT_CHARSET, null, null, DEFAULT_LEVEL).
public TarGZipDriver(String charset)
this(charset, null, null, DEFAULT_LEVEL).
public TarGZipDriver(int level)
this(DEFAULT_CHARSET, null, null, level).
public TarGZipDriver(String charset,
Icon openIcon,
Icon closedIcon,
int level)
level - The compression level to use when writing a GZIP output
stream.
IllegalArgumentException - If level is not in the
range [1..9]
and is not -1.| Method Detail |
|---|
public final int getLevel()
preambled which was
provided to the constructor.
protected InputStream createInputStream(Archive archive,
ReadOnlyFile rof)
throws IOException
TarDriverInputStream to read the contents from the
given ReadOnlyFile from.
Override this method in order to decorate the stream returned by the
implementation in this class in order to have the driver read the TAR
file from wrapper file formats such as GZIP or BZIP2.
Note that the returned stream should support marking for best
performance and will always be closed early by
TarDriver.createInputArchive(Archive, ReadOnlyFile).
createInputStream in class TarDriverIOException
protected TarOutputArchive createTarOutputArchive(Archive archive,
OutputStream out,
TarInputArchive source)
throws IOException
createTarOutputArchive in class TarDriverIOException
|
TrueZIP 6.8.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||