org.at4j.tar
Class TarEntryNameGlobFilter

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

Constructor Summary
TarEntryNameGlobFilter(Glob glob)
          Create a filter using the supplied glob pattern.
TarEntryNameGlobFilter(String glob)
          Create a filter using the supplied glob pattern.
 
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
 

Constructor Detail

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.
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.