| 1 | package be.nikiroo.fanfix.output; |
| 2 | |
| 3 | import be.nikiroo.fanfix.data.Chapter; |
| 4 | import be.nikiroo.fanfix.data.Paragraph; |
| 5 | import be.nikiroo.fanfix.data.Story; |
| 6 | |
| 7 | class Sysout extends BasicOutput { |
| 8 | @Override |
| 9 | protected void writeStoryHeader(Story story) { |
| 10 | System.out.println(story); |
| 11 | } |
| 12 | |
| 13 | @Override |
| 14 | protected void writeChapterHeader(Chapter chap) { |
| 15 | System.out.println(chap); |
| 16 | } |
| 17 | |
| 18 | @Override |
| 19 | protected void writeParagraphHeader(Paragraph para) { |
| 20 | System.out.println(para); |
| 21 | } |
| 22 | } |