org.at4j.tar
Class TarFileEntryFilter

java.lang.Object
  extended by org.entityfs.support.filter.AbstractConvenientFilter<TarEntryHeaderData>
      extended by 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

Field Summary
static TarFileEntryFilter FILTER
          The singleton instance.
 
Constructor Summary
TarFileEntryFilter()
           
 
Method Summary
 boolean matches(TarEntryHeaderData object)
          Does the filter match the object?
 
Methods inherited from class org.entityfs.support.filter.AbstractConvenientFilter
and, bitwiseNegate, isCase, not, or, xor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILTER

public static final TarFileEntryFilter FILTER
The singleton instance.

Constructor Detail

TarFileEntryFilter

public TarFileEntryFilter()
Method Detail

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.