org.at4j.tar
Class TarFileEntryFilter
java.lang.Object
org.entityfs.support.filter.AbstractConvenientFilter<TarEntryHeaderData>
org.at4j.tar.TarFileEntryFilter
- All Implemented Interfaces:
- Cloneable, TarEntryHeaderDataFilter, ConvenientFilter<TarEntryHeaderData>, Filter<TarEntryHeaderData>
public final class TarFileEntryFilter
- extends AbstractConvenientFilter<TarEntryHeaderData>
- implements TarEntryHeaderDataFilter
This filter matches Tar file entries. It can be used with the
TarExtractor
.
Since this filter does not have any internal state, the singleton instance
FILTER
may be used instead of instantiating the class.
- Since:
- 1.0
- Author:
- Karl Gustafsson
- See Also:
TarExtractor
,
TarExtractSpecification
,
TarDirectoryEntryFilter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILTER
public static final TarFileEntryFilter FILTER
- The singleton instance.
TarFileEntryFilter
public TarFileEntryFilter()
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.