dk.netarkivet.common.utils.cdx
Class ARCFilenameCDXRecordFilter

java.lang.Object
  extended by dk.netarkivet.common.utils.cdx.SimpleCDXRecordFilter
      extended by dk.netarkivet.common.utils.cdx.ARCFilenameCDXRecordFilter
All Implemented Interfaces:
CDXRecordFilter, java.io.Serializable

public class ARCFilenameCDXRecordFilter
extends SimpleCDXRecordFilter

A filter to use in CDXReader when finding CDXRecords matching a filename-pattern.

See Also:
Serialized Form

Constructor Summary
ARCFilenameCDXRecordFilter(java.lang.String arcfilenamepattern, java.lang.String filtername)
           
 
Method Summary
 java.lang.String getFilenamePattern()
           
 boolean process(CDXRecord cdxrec)
          Process one CDXRecord - return true/false.
 
Methods inherited from class dk.netarkivet.common.utils.cdx.SimpleCDXRecordFilter
getFilterName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ARCFilenameCDXRecordFilter

public ARCFilenameCDXRecordFilter(java.lang.String arcfilenamepattern,
                                  java.lang.String filtername)
                           throws ArgumentNotValid
Throws:
ArgumentNotValid
Method Detail

getFilenamePattern

public java.lang.String getFilenamePattern()

process

public boolean process(CDXRecord cdxrec)
Description copied from interface: CDXRecordFilter
Process one CDXRecord - return true/false.

Specified by:
process in interface CDXRecordFilter
Overrides:
process in class SimpleCDXRecordFilter
Parameters:
cdxrec - - the record to be processed
Returns:
this is a dummy method to be overridden - it always returns true