org.codehaus.plexus.archiver.tar

Class TarArchiver

public class TarArchiver extends AbstractArchiver

Version: $Revision: 8217 $ $Date: 2009-05-27 03:56:55 +0300 (Wed, 27 May 2009) $

Author: Emmanuel Venisse

Nested Class Summary
static classTarArchiver.TarCompressionMethod
Valid Modes for Compression attribute to Tar Task
classTarArchiver.TarOptions
Valid Modes for Compression attribute to Tar Task
Method Summary
protected voidcleanUp()
protected voidclose()
protected voidexecute()
protected StringgetArchiveType()
TarArchiver.TarOptionsgetOptions()
booleanisSupportingForced()
voidsetCompression(TarArchiver.TarCompressionMethod mode)
Set compression method.
voidsetLongfile(TarLongFileMode mode)
Set how to handle long files, those with a path>100 chars.
voidsetOptions(TarArchiver.TarOptions options)
Set all tar options
protected voidtarFile(ArchiveEntry entry, TarOutputStream tOut, String vPath)
tar a file

Method Detail

cleanUp

protected void cleanUp()

close

protected void close()

execute

protected void execute()

getArchiveType

protected String getArchiveType()

getOptions

public TarArchiver.TarOptions getOptions()

isSupportingForced

public boolean isSupportingForced()

setCompression

public void setCompression(TarArchiver.TarCompressionMethod mode)
Set compression method. Allowable values are

Parameters: mode the compression method.

setLongfile

public void setLongfile(TarLongFileMode mode)
Set how to handle long files, those with a path>100 chars. Optional, default=warn.

Allowable values are

Parameters: mode the mode to handle long file names.

setOptions

public void setOptions(TarArchiver.TarOptions options)
Set all tar options

Parameters: options options

tarFile

protected void tarFile(ArchiveEntry entry, TarOutputStream tOut, String vPath)
tar a file

Parameters: entry the file to tar tOut the output stream vPath the path name of the file to tar

Throws: IOException on error

Copyright © 2001-2009 Codehaus. All Rights Reserved.