|
||||||||||
| 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
public class 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 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,
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,
IOException
execute in class AbstractArchiverArchiverException
IOException
protected void tarFile(ArchiveEntry entry,
TarOutputStream tOut,
String vPath)
throws ArchiverException,
IOException
entry - the file to tartOut - the output streamvPath - the path name of the file to tar
IOException - on error
ArchiverExceptionpublic boolean isSupportingForced()
ArchiverArchiver.setForced(boolean) to true.
isSupportingForced in interface ArchiverisSupportingForced in class AbstractArchiverArchiver.setForced(boolean),
Archiver.isForced()protected void cleanUp()
cleanUp in class AbstractArchiver
protected void close()
throws IOException
close in class AbstractArchiverIOExceptionprotected String getArchiveType()
getArchiveType in class AbstractArchiver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||