|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.at4j.util.archive.ExtractSpecification
public class ExtractSpecification
This specification object contains configuration for an extraction operation
by the ArchiveExtractor.
When this object is instantiated, it contains the default extraction settings:
EntryExtractor).
| Constructor Summary | |
|---|---|
ExtractSpecification()
|
|
| Method Summary | |
|---|---|
EntryExtractionStrategy |
getEntryExtractionStrategy()
Get the strategy object for extracting entries. |
Filter<? super ArchiveEntry<?,?>> |
getFilter()
Get the filter for the extraction operation. |
OverwriteStrategy |
getOverwriteStrategy()
|
ExtractSpecification |
setEntryExtractionStrategy(EntryExtractionStrategy entryExtractor)
Set the strategy object for extracting entries. |
ExtractSpecification |
setFilter(Filter<? super ArchiveEntry<?,?>> filter)
Set the filter that archive entries must match in order to be extracted. |
ExtractSpecification |
setOverwriteStrategy(OverwriteStrategy strat)
If an entity already exists in a location where the extractor tries to extract an entry, should the old entry be overwritten? Should a warning be printed? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtractSpecification()
| Method Detail |
|---|
public Filter<? super ArchiveEntry<?,?>> getFilter()
null if no filter is set.public ExtractSpecification setFilter(Filter<? super ArchiveEntry<?,?>> filter)
filter - The filter, or null if all entries should be
extracted.
thispublic EntryExtractionStrategy getEntryExtractionStrategy()
public ExtractSpecification setEntryExtractionStrategy(EntryExtractionStrategy entryExtractor)
entryExtractor - The entry extraction strategy.
thispublic ExtractSpecification setOverwriteStrategy(OverwriteStrategy strat)
Non-empty directories cannot be overwritten. If the archive extractor
encounters a non-empty directory, it throws an
DirectoryNotEmptyException.
strat - The overwrite strategy to use.
thispublic OverwriteStrategy getOverwriteStrategy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||