}
if (pageSet.size() > 0) {
LOG.debug("Found " + pageSet.size() + " destination pages at level " + bLevel);
inputCommand.setSplitPageNumbers((Integer[]) pageSet.toArray(new Integer[pageSet.size()]));
} else {
throw new SplitException(SplitException.ERR_BLEVEL_NO_DEST, new String[] { "" + bLevel });
}
} else {
throw new SplitException(SplitException.ERR_BLEVEL, new String[] { "" + bLevel });
}
} else {
input.close();
pdfReader.close();
throw new SplitException(SplitException.ERR_BLEVEL_OUTOFBOUNDS, new String[] { "" + bLevel,
"" + maxDepth });
}
} else {
pdfReader.close();
throw new SplitException(SplitException.ERR_NOT_VALID_BLEVEL, new String[] { "" + bLevel });
}
pdfReader.close();
executeSplit(inputCommand, bookmarksTable);
}