Skip to content
Snippets Groups Projects
Commit 2592bd18 authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- added missing declations of exceptions (based on...

- added missing declations of exceptions (based on https://github.com/ExLibrisGroup/Rosetta.CustomNFSStoragePlugin)
parent d34ab252
No related branches found
No related tags found
No related merge requests found
......@@ -78,11 +78,11 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
log.info("SLUBStoragePlugin instantiated");
}
public boolean checkFixity(List<Fixity> fixities, String storedEntityIdentifier) {
public boolean checkFixity(List<Fixity> fixities, String storedEntityIdentifier) throws Exception {
log.info("SLUBStoragePlugin.checkFixity()");
return checkFixity(fixities, storedEntityIdentifier, true);
}
public boolean checkFixity(List<Fixity> fixities, String storedEntityIdentifier, boolean isRelativePath) {
public boolean checkFixity(List<Fixity> fixities, String storedEntityIdentifier, boolean isRelativePath) throws Exception {
log.info("SLUBStoragePlugin.checkFixity() storedEntityIdentifier='" + storedEntityIdentifier + "' isRelativePath=" + isRelativePath);
boolean result = true;
if (fixities != null)
......@@ -235,7 +235,7 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
return java.nio.file.Files.newInputStream( Paths.get( pathname));
}
public byte[] retrieveEntityByRange(String storedEntityIdentifier, long start, long end)
public byte[] retrieveEntityByRange(String storedEntityIdentifier, long start, long end) throws Exception
{
log.info("SLUBStoragePlugin.retrieveEntitybyRange() with '" + storedEntityIdentifier + "' start=" + start + " end=" + end);
byte[] bytes = new byte[(int)(end - start + 1L)];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment