org.at4j.tar
Class TarEntryNameFilter
java.lang.Object
org.entityfs.support.filter.AbstractConvenientFilter<TarEntryHeaderData>
org.at4j.tar.TarEntryNameFilter
- All Implemented Interfaces:
- Cloneable, TarEntryHeaderDataFilter, ConvenientFilter<TarEntryHeaderData>, Filter<TarEntryHeaderData>
public final class TarEntryNameFilter
- extends AbstractConvenientFilter<TarEntryHeaderData>
- implements TarEntryHeaderDataFilter
This filter matches Tar entries with a specific name.
- 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 |
TarEntryNameFilter
public TarEntryNameFilter(String name)
- Create a new case sensitive entry name filter.
- Parameters:
name - The name to match.
TarEntryNameFilter
public TarEntryNameFilter(String name,
boolean caseSensitive)
- Create a new entry name filter.
- Parameters:
name - The name to match.caseSensitive - Should the filter be case sensitive?
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.