@PublicAPI

Package uk.org.retep.util.io.tar

Unix Tar archive support.

See:
          Description

Interface Summary
WritableTar An object that can be used to write a Tar archive
 

Class Summary
GnuHeader A TarHeader for a standard file
GnuHeader.DumpDir This represents a directory and a list of files created by the '--incremental' ('-G') option to gnu tar.
GnuHeader.LongNameFile A Regular file who's name is longer than supported by the Posix standard
GnuHeader.MultiVolume This represents a file continued from another volume of a multi-volume archive created with the '--multi-volume' ('-M') option to gnu tar.
GnuHeader.SparseFile This flag indicates that we are dealing with a sparse file.
GnuHeader.VolumeHeader This file type is used to mark the volume header that was given with the '--label=archive-label' ('-V archive-label') option in gnu tar when the archive was created.
StandardHeader A TarHeader for a standard file
StandardHeader.ARegularFile A Regular file (using TarHeaderType.AREGULAR_FILE}
StandardHeader.Directory  
StandardHeader.EndOfArchive Special header used to mark the end of an archive.
StandardHeader.RegularFile A Regular file who's filename fits the Posix standard.
TarCreateFileVisitor A FileVisitor that can write to a TarOutputStream
TarFactory Factory for managing Tar archives
TarHeader Base class for all TarHeader's
TarHeader.FileHeader Base class for file entries
TarHeader.NamedHeader Base class of all TarHeader's that use the name field.
TarOutputStream An OutputStream to write a tar archive.
TarUtils A collection of utility methods for handling tar archives
WritableTarChannel A Channel for writing a Tar archive.
 

Enum Summary
TarFormat  
TarHeaderType The header block type.
 

Package uk.org.retep.util.io.tar Description

Unix Tar archive support.

Prior to 9.10 this was based on JTar 1.2 which was in the public domain, however due to bug RETEPTOOLS-28 this was rewritten from scratch as JTar was too buggy (not just the filename length limitation.

The new implementation is pure JDK 1.6 or later and supports both Streams and NIO Channels for writing.

Hopefully reading tars will be supported by the time 9.10 is released.

Further reading:

  1. tar (file format) on Wikipedia
  2. GNU Tar documentation:
    1. Basic Tar Format
    2. GNU Extensions to the Archive Format



Copyright © 1998-2010 Retep Development Group. All Rights Reserved.