1 package be
.nikiroo
.gofetch
.output
;
5 import be
.nikiroo
.gofetch
.data
.Comment
;
6 import be
.nikiroo
.gofetch
.data
.Story
;
7 import be
.nikiroo
.gofetch
.support
.BasicSupport
.Type
;
10 * Base class for output operations.
14 public abstract class Output
{
16 * The type of source, can be NULL for no-type.
21 * Create a new {@link Output} class for the given type (which can be NULL).
24 * the type or NULL for no type
26 public Output(Type type
) {
31 * Get the header to use in the index file.
35 abstract public String
getIndexHeader();
38 * Get the footer to use in the index file.
42 abstract public String
getIndexFooter();
45 * Export a story (in resume mode).
52 abstract public String
export(Story story
);
55 * Export a full story with comments.
64 abstract public String
export(Story story
, List
<Comment
> comments
);