|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.archiver.AbstractArchiver
org.codehaus.plexus.archiver.tar.TarArchiver
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 |
Fields inherited from interface org.codehaus.plexus.archiver.Archiver |
DEFAULT_DIR_MODE, DEFAULT_FILE_MODE, DUPLICATES_ADD, DUPLICATES_FAIL, DUPLICATES_PRESERVE, DUPLICATES_SKIP, DUPLICATES_VALID_BEHAVIORS, ROLE |
Constructor Summary | |
TarArchiver()
|
Method Summary | |
protected void |
cleanUp()
|
protected void |
close()
|
protected void |
execute()
|
protected java.lang.String |
getArchiveType()
|
TarArchiver.TarOptions |
getOptions()
|
boolean |
isSupportingForced()
Returns, whether the archive supports uptodate checks. |
void |
setCompression(TarArchiver.TarCompressionMethod mode)
Set compression method. |
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,
java.lang.String vPath)
tar a file |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TarArchiver()
Method Detail |
public TarArchiver.TarOptions getOptions()
public void setOptions(TarArchiver.TarOptions options)
options
- optionspublic void setLongfile(TarLongFileMode mode)
mode
- the mode to handle long file names.public void setCompression(TarArchiver.TarCompressionMethod mode)
mode
- the compression method.protected void execute() throws ArchiverException, java.io.IOException
execute
in class AbstractArchiver
ArchiverException
java.io.IOException
protected void tarFile(ArchiveEntry entry, TarOutputStream tOut, java.lang.String vPath) throws ArchiverException, java.io.IOException
entry
- the file to tartOut
- the output streamvPath
- the path name of the file to tar
java.io.IOException
- on error
ArchiverException
public boolean isSupportingForced()
Archiver
Archiver.setForced(boolean)
to true.
isSupportingForced
in interface Archiver
isSupportingForced
in class AbstractArchiver
protected void cleanUp()
cleanUp
in class AbstractArchiver
protected void close() throws java.io.IOException
close
in class AbstractArchiver
java.io.IOException
protected java.lang.String getArchiveType()
getArchiveType
in class AbstractArchiver
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |