Remove or move java.awt dependencies
[nikiroo-utils.git] / src / be / nikiroo / fanfix / reader / Reader.java
index d2984bd5221c693fe2a3b2afda1a71e675ba55c3..f98f12c53f0c21b811341bc79703799bbc646080 100644 (file)
@@ -40,16 +40,16 @@ public interface Reader {
                        String pkg = "be.nikiroo.fanfix.reader.";
                        switch (this) {
                        case CLI:
-                               return pkg + "CliReader";
+                               return pkg + "cli.CliReader";
                        case TUI:
-                               return pkg + "TuiReader";
+                               return pkg + "tui.TuiReader";
                        case GUI:
-                               return pkg + "GuiReader";
+                               return pkg + "ui.GuiReader";
                        }
 
                        return null;
                }
-       };
+       }
 
        /**
         * Return the current target {@link MetaData}.
@@ -158,4 +158,18 @@ public interface Reader {
         *            all
         */
        public void browse(String source);
+
+       /**
+        * Open the {@link Story} with an external reader (the program will be
+        * passed the main file associated with this {@link Story}).
+        * 
+        * @param lib
+        *            the {@link BasicLibrary} to select the {@link Story} from
+        * @param luid
+        *            the {@link Story} LUID
+        * 
+        * @throws IOException
+        *             in case of I/O error
+        */
+       public void openExternal(BasicLibrary lib, String luid) throws IOException;
 }