* @author niki
*/
class CliReader extends BasicReader {
- @Override
public void read() throws IOException {
if (getStory() == null) {
throw new IOException("No story to read");
}
}
- @Override
public void read(int chapter) throws IOException {
if (getStory() == null) {
throw new IOException("No story to read");
}
}
- @Override
- public void start(String type) {
+ public void browse(String source) {
List<MetaData> stories;
- stories = Instance.getLibrary().getListByType(type);
+ stories = getLibrary().getListBySource(source);
for (MetaData story : stories) {
String author = "";