org.apache.commons.compress.archivers.tar
Class TarArchive
java.lang.Object
org.apache.commons.compress.PackableObject
org.apache.commons.compress.AbstractArchive
org.apache.commons.compress.archivers.tar.TarArchive
- All Implemented Interfaces:
- org.apache.commons.compress.Archive
- public class TarArchive
- extends org.apache.commons.compress.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.
Fields inherited from class org.apache.commons.compress.PackableObject |
CHOOSE_EXTENSION, CHOOSE_NAME |
Constructor Summary |
TarArchive()
This Archive should be instantiated in the Archive-Interface. |
Methods inherited from class org.apache.commons.compress.AbstractArchive |
add, add, close, getArchive, getEntryIterator, newInstance, save, save, setArchive, unpack |
Methods inherited from class org.apache.commons.compress.PackableObject |
identifyByHeader, isPackableWith |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FILE_EXTENSION
public static final java.lang.String DEFAULT_FILE_EXTENSION
- DEFAULT_FILE_EXTENSION Field for this archiver.
- See Also:
- Constant Field Values
TarArchive
public TarArchive()
- This Archive should be instantiated in the Archive-Interface.
doUnpack
protected void doUnpack(java.io.File unpackDir)
throws org.apache.commons.compress.UnpackException
- Throws:
org.apache.commons.compress.UnpackException
doSave
public void doSave(java.io.FileOutputStream output)
throws org.apache.commons.compress.ArchiveException
- Throws:
org.apache.commons.compress.ArchiveException
getName
public java.lang.String getName()
getDefaultFileExtension
public java.lang.String getDefaultFileExtension()
getHeader
public byte[] getHeader()
Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.