|
TrueZIP 6.8.3 | ||||||||
| 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.TarBZip2Driver
public class TarBZip2Driver
An archive driver which builds TAR files compressed with BZIP2.
Instances of this class are immutable.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.schlichtherle.io.archive.spi.AbstractArchiveDriver |
|---|
AbstractArchiveDriver.InconsistentCharsetSupportError |
| Field Summary | |
|---|---|
private static int |
BUFSIZE
|
static int |
DEFAULT_BLOCKSIZE
The default block size to use when writing a BZIP2 output stream, which is 9. |
static int |
DEFAULT_LEVEL
Deprecated. Use DEFAULT_BLOCKSIZE instead. |
private int |
inBlockSize
|
static int |
MAX_BLOCKSIZE
The maximum block size to use when writing a BZIP2 output stream, which is 9. |
static int |
MIN_BLOCKSIZE
The minimum block size to use when writing a BZIP2 output stream, which is 1. |
private static long |
serialVersionUID
|
| Fields inherited from class de.schlichtherle.io.archive.tar.TarDriver |
|---|
DEFAULT_CHARSET, TEMP_FILE_PREFIX |
| Constructor Summary | |
|---|---|
TarBZip2Driver()
Equivalent to this(DEFAULT_CHARSET, null, null, DEFAULT_BLOCKSIZE). |
|
TarBZip2Driver(int inBlockSize)
Equivalent to this(DEFAULT_CHARSET, null, null, inBlockSize). |
|
TarBZip2Driver(String charset)
Equivalent to this(charset, null, null, DEFAULT_BLOCKSIZE). |
|
TarBZip2Driver(String charset,
Icon openIcon,
Icon closedIcon,
int inBlockSize)
Constructs a new TAR.BZ2 driver. |
|
TarBZip2Driver(String charset,
int inBlockSize)
Equivalent to this(charset, null, null, inBlockSize). |
|
| Method Summary | |
|---|---|
protected InputStream |
createInputStream(Archive archive,
ReadOnlyFile rof)
Returns a newly created and verified CBZip2InputStream. |
protected TarOutputArchive |
createTarOutputArchive(Archive archive,
OutputStream out,
TarInputArchive source)
|
int |
getLevel()
Returns the value of the property inBlockSize 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 |
|---|
private static final long serialVersionUID
private static final int BUFSIZE
public static final int MIN_BLOCKSIZE
public static final int MAX_BLOCKSIZE
public static final int DEFAULT_BLOCKSIZE
public static final int DEFAULT_LEVEL
DEFAULT_BLOCKSIZE instead.private final int inBlockSize
| Constructor Detail |
|---|
public TarBZip2Driver()
this(DEFAULT_CHARSET, null, null, DEFAULT_BLOCKSIZE).
public TarBZip2Driver(String charset)
this(charset, null, null, DEFAULT_BLOCKSIZE).
public TarBZip2Driver(int inBlockSize)
this(DEFAULT_CHARSET, null, null, inBlockSize).
public TarBZip2Driver(String charset,
int inBlockSize)
this(charset, null, null, inBlockSize).
public TarBZip2Driver(String charset,
Icon openIcon,
Icon closedIcon,
int inBlockSize)
inBlockSize - The compression block size to use when writing
a BZIP2 output stream.
IllegalArgumentException - If inBlockSize is not
in the range [1..9].| Method Detail |
|---|
public final int getLevel()
inBlockSize which was
provided to the constructor.
protected InputStream createInputStream(Archive archive,
ReadOnlyFile rof)
throws IOException
CBZip2InputStream.
This method performs a simple verification by computing the checksum
for the first record only.
This method is required because the CBZip2InputStream
unfortunately does not do sufficient verification!
createInputStream in class TarDriverIOException
protected TarOutputArchive createTarOutputArchive(Archive archive,
OutputStream out,
TarInputArchive source)
throws IOException
createTarOutputArchive in class TarDriverIOException
|
TrueZIP 6.8.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||