org.dspace.app.itemupdate
Class BitstreamFilter

java.lang.Object
  extended by org.dspace.app.itemupdate.BitstreamFilter
Direct Known Subclasses:
BitstreamFilterByBundleName, BitstreamFilterByFilename, OriginalWithDerivativesBitstreamFilter

public abstract class BitstreamFilter
extends Object

Filter interface to be used by ItemUpdate to determine which bitstreams in an Item acceptable for removal.


Field Summary
protected  Properties props
           
 
Constructor Summary
BitstreamFilter()
           
 
Method Summary
abstract  boolean accept(Bitstream bitstream)
          The filter method
 void initProperties(String filepath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

props

protected Properties props
Constructor Detail

BitstreamFilter

public BitstreamFilter()
Method Detail

accept

public abstract boolean accept(Bitstream bitstream)
                        throws BitstreamFilterException
The filter method

Parameters:
bitstream -
Returns:
whether the bitstream matches the criteria
Throws:
BitstreamFilterException

initProperties

public void initProperties(String filepath)
                    throws IOException
Parameters:
filepath - - The complete path for the properties file
Throws:
IOException


Copyright © 2010 DuraSpace. All Rights Reserved.