org.apache.oodt.cas.metadata.preconditions
Class EndsWithComparator

java.lang.Object
  extended by org.apache.oodt.cas.metadata.preconditions.PreConditionComparator<String>
      extended by org.apache.oodt.cas.metadata.preconditions.EndsWithComparator
All Implemented Interfaces:
SpringSetIdInjectionType

public class EndsWithComparator
extends PreConditionComparator<String>

A PreConditionComparator that checks a file's extension and then skips extracting metadata from files that don't match this extension.

Version:
$Revision$
Author:
mattmann

Constructor Summary
EndsWithComparator()
           
 
Method Summary
protected  int performCheck(File file, String ext)
           
 
Methods inherited from class org.apache.oodt.cas.metadata.preconditions.PreConditionComparator
getDescription, getId, passes, setCompareItem, setDescription, setFileExtension, setId, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndsWithComparator

public EndsWithComparator()
Method Detail

performCheck

protected int performCheck(File file,
                           String ext)
                    throws PreconditionComparatorException
Specified by:
performCheck in class PreConditionComparator<String>
Throws:
PreconditionComparatorException


Copyright © 1999-2013 Apache OODT. All Rights Reserved.