1 package be
.nikiroo
.fanfix
.reader
;
3 import java
.io
.IOException
;
6 import be
.nikiroo
.fanfix
.Instance
;
7 import be
.nikiroo
.fanfix
.data
.MetaData
;
9 class TuiReader
extends BasicReader
{
11 public void read() throws IOException
{
12 if (getStory() == null) {
13 throw new IOException("No story to read");
16 open(getStory().getMeta().getLuid());
20 public void read(int chapter
) throws IOException
{
21 // TODO: show a special page?
26 public void start(String type
) {
27 List
<MetaData
> stories
= Instance
.getLibrary().getListByType(type
);
29 TuiReaderApplication app
= new TuiReaderApplication(stories
, this);
30 new Thread(app
).start();
31 } catch (Exception e
) {