org.at4j.tar
Class TarEntryNameGlobFilter
java.lang.Object
org.entityfs.support.filter.AbstractConvenientFilter<TarEntryHeaderData>
org.at4j.tar.TarEntryNameGlobFilter
- All Implemented Interfaces:
- Cloneable, TarEntryHeaderDataFilter, ConvenientFilter<TarEntryHeaderData>, Filter<TarEntryHeaderData>
public final class TarEntryNameGlobFilter
- extends AbstractConvenientFilter<TarEntryHeaderData>
- implements TarEntryHeaderDataFilter
This filter matches Tar entries with names that match a Glob
pattern.
It can be used with the TarExtractor
.
- Since:
- 1.0
- Author:
- Karl Gustafsson
- See Also:
TarExtractor
,
TarExtractSpecification
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TarEntryNameGlobFilter
public TarEntryNameGlobFilter(String glob)
- Create a filter using the supplied glob pattern.
- Parameters:
glob
- The glob pattern.
TarEntryNameGlobFilter
public TarEntryNameGlobFilter(Glob glob)
- Create a filter using the supplied glob pattern.
- Parameters:
glob
- The glob pattern.
matches
public boolean matches(TarEntryHeaderData object)
- Description copied from interface:
Filter
- Does the filter match the object?
- Specified by:
matches
in interface Filter<TarEntryHeaderData>
- Parameters:
object
- The object to match.
- Returns:
true
if the filter matches the object.