Package org.dspace.app.itemupdate
Class BitstreamFilter
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected Propertiesprops
-
Constructor Summary
Constructors Constructor Description BitstreamFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanaccept(Bitstream bitstream)The filter methodvoidinitProperties(String filepath)
-
-
-
Field Detail
-
props
protected Properties props
-
-
Method Detail
-
accept
public abstract boolean accept(Bitstream bitstream) throws BitstreamFilterException
The filter method- Parameters:
bitstream- Bitstream- Returns:
- whether the bitstream matches the criteria
- Throws:
BitstreamFilterException- if filter error
-
initProperties
public void initProperties(String filepath) throws IOException
- Parameters:
filepath- - The complete path for the properties file- Throws:
IOException- if IO error
-
-