}
public void setStory(String luid, Progress pg) throws IOException {
- story = lib.getStory(luid, pg);
+ story = getLibrary().getStory(luid, pg);
if (story == null) {
throw new IOException("Cannot retrieve story from library: " + luid);
}
}
}
+ public void read() throws IOException {
+ read(-1);
+ }
+
/**
* Return a new {@link BasicReader} ready for use if one is configured.
* <p>
* @throws IOException
* in case of I/O error
*/
- public static void open(BasicLibrary lib, String luid) throws IOException {
+ public static void openExternal(BasicLibrary lib, String luid)
+ throws IOException {
MetaData meta = lib.getInfo(luid);
File target = lib.getFile(luid);
- open(meta, target);
+ openExternal(meta, target);
}
/**
* @throws IOException
* in case of I/O error
*/
- protected static void open(MetaData meta, File target) throws IOException {
+ protected static void openExternal(MetaData meta, File target)
+ throws IOException {
String program = null;
if (meta.isImageDocument()) {
program = Instance.getUiConfig().getString(