org.codehaus.plexus.archiver.tar
public class TarArchiver extends AbstractArchiver
Version: $Revision: 3651 $ $Date: 2006-08-21 17:05:02 -0400 (Mon, 21 Aug 2006) $
Nested Class Summary | |
---|---|
static class | TarArchiver.TarCompressionMethod
Valid Modes for Compression attribute to Tar Task |
class | TarArchiver.TarOptions
Valid Modes for Compression attribute to Tar Task |
Field Summary | |
---|---|
TarArchiver.TarCompressionMethod | compression |
TarLongFileMode | longFileMode |
boolean | longWarningGiven
Indicates whether the user has been warned about long files already. |
TarArchiver.TarOptions | options |
Method Summary | |
---|---|
static boolean | containsFile(File file, Collection list) |
void | createArchive() |
TarArchiver.TarOptions | getOptions() |
boolean | isSupportingForced() |
void | setCompression(TarArchiver.TarCompressionMethod mode)
Set compression method.
|
void | setDefaultDirectoryMode(int mode)
Override AbstractArchiver.setDefaultDirectoryMode to
update TarOptions. |
void | setDefaultFileMode(int mode)
Override AbstractArchiver.setDefaultFileMode to
update TarOptions. |
void | setLongfile(TarLongFileMode mode)
Set how to handle long files, those with a path>100 chars.
|
void | setOptions(TarArchiver.TarOptions options)
Set all tar options
|
protected void | tarFile(ArchiveEntry entry, TarOutputStream tOut, String vPath)
tar a file
|
Parameters: mode the compression method.
Parameters: mode the mode to handle long file names.
Parameters: options options
Parameters: entry the file to tar tOut the output stream vPath the path name of the file to tar
Throws: IOException on error