Package org.dspace.checker
Class LimitedCountDispatcher
- java.lang.Object
-
- org.dspace.checker.LimitedCountDispatcher
-
- All Implemented Interfaces:
BitstreamDispatcher
public class LimitedCountDispatcher extends Object implements BitstreamDispatcher
Decorator that dispatches a specified number of bitstreams from a delegate dispatcher.- Author:
- Jim Downing, Grace Carpenter, Nathan Sarr
-
-
Field Summary
-
Fields inherited from interface org.dspace.checker.BitstreamDispatcher
SENTINEL
-
-
Constructor Summary
Constructors Constructor Description LimitedCountDispatcher()Default constructor uses LegacyPluginServiceImplLimitedCountDispatcher(BitstreamDispatcher del)Constructor.LimitedCountDispatcher(BitstreamDispatcher del, int count)Constructor.
-
-
-
Constructor Detail
-
LimitedCountDispatcher
public LimitedCountDispatcher()
Default constructor uses LegacyPluginServiceImpl
-
LimitedCountDispatcher
public LimitedCountDispatcher(BitstreamDispatcher del, int count)
Constructor.- Parameters:
del- The bitstream distpatcher to delegate to.count- the number of bitstreams to check.
-
LimitedCountDispatcher
public LimitedCountDispatcher(BitstreamDispatcher del)
Constructor.- Parameters:
del- The bitstream distpatcher to delegate to.
-
-
Method Detail
-
next
public Bitstream next() throws SQLException
Retreives the next bitstream to be checked.- Specified by:
nextin interfaceBitstreamDispatcher- Returns:
- the bitstream
- Throws:
SQLException- if database error
-
-