d00bbc29079b906e0ecbeae5e45b21bca8ac7d0e
1 package be
.nikiroo
.fanfix
.reader
;
3 import java
.io
.IOException
;
6 import be
.nikiroo
.fanfix
.Instance
;
7 import be
.nikiroo
.fanfix
.Library
;
8 import be
.nikiroo
.fanfix
.data
.MetaData
;
10 class TuiReader
extends BasicReader
{
12 public void read() throws IOException
{
13 if (getStory() == null) {
14 throw new IOException("No story to read");
17 open(getLibrary(), getStory().getMeta().getLuid());
21 public void read(int chapter
) throws IOException
{
22 // TODO: show a special page?
27 public void browse(String source
) {
28 List
<MetaData
> stories
= getLibrary().getListBySource(source
);
30 TuiReaderApplication app
= new TuiReaderApplication(stories
, this);
31 new Thread(app
).start();
32 } catch (Exception e
) {