org.apache.commons.compress.archivers.tar

Class TarArchive

public class TarArchive extends AbstractArchive

Archive-Implementation for Tar. An tar archive has no header. This means, that the ArchiverFactory.getInstance( new File("file.tar")) Method cannot be used.
Field Summary
static StringARCHIVER_NAME
ARCHIVER_NAME Field for this archiver.
static intBUFFER
static StringDEFAULT_FILE_EXTENSION
DEFAULT_FILE_EXTENSION Field for this archiver.
Constructor Summary
TarArchive()
This Archive should be instantiated in the Archive-Interface.
Method Summary
voiddoSave(FileOutputStream output)
protected voiddoUnpack(File unpackDir)
StringgetDefaultFileExtension()
byte[]getHeader()
StringgetName()

Field Detail

ARCHIVER_NAME

private static final String ARCHIVER_NAME
ARCHIVER_NAME Field for this archiver.

BUFFER

private static final int BUFFER

DEFAULT_FILE_EXTENSION

public static final String DEFAULT_FILE_EXTENSION
DEFAULT_FILE_EXTENSION Field for this archiver.

Constructor Detail

TarArchive

public TarArchive()
This Archive should be instantiated in the Archive-Interface.

Method Detail

doSave

public void doSave(FileOutputStream output)

doUnpack

protected void doUnpack(File unpackDir)

getDefaultFileExtension

public String getDefaultFileExtension()

getHeader

public byte[] getHeader()

getName

public String getName()