98130a989b8b0fa505f307dddd7f958bb9bdeb7f
1 package be
.nikiroo
.fanfix
.reader
;
3 import java
.io
.IOException
;
5 import be
.nikiroo
.fanfix
.Instance
;
7 class TuiReader
extends BasicReader
{
9 public void read() throws IOException
{
10 if (getStory() == null) {
11 throw new IOException("No story to read");
14 open(getLibrary(), getStory().getMeta().getLuid());
18 public void read(int chapter
) throws IOException
{
19 // TODO: show a special page?
24 public void browse(String source
) {
26 TuiReaderApplication app
= new TuiReaderApplication(getLibrary()
27 .getListBySource(source
), this);
28 new Thread(app
).start();
29 } catch (Exception e
) {