git://git.nikiroo.be
/
gofetch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New getComentById() method
[gofetch.git]
/
src
/
be
/
nikiroo
/
gofetch
/
output
/
Output.java
diff --git
a/src/be/nikiroo/gofetch/output/Output.java
b/src/be/nikiroo/gofetch/output/Output.java
index b12596e38ac1958945211534df62e03f06066329..db6554b074587ff9d398c8cc6bbc596467913ac1 100644
(file)
--- a/
src/be/nikiroo/gofetch/output/Output.java
+++ b/
src/be/nikiroo/gofetch/output/Output.java
@@
-1,8
+1,5
@@
package be.nikiroo.gofetch.output;
package be.nikiroo.gofetch.output;
-import java.util.List;
-
-import be.nikiroo.gofetch.data.Comment;
import be.nikiroo.gofetch.data.Story;
import be.nikiroo.gofetch.support.BasicSupport.Type;
import be.nikiroo.gofetch.data.Story;
import be.nikiroo.gofetch.support.BasicSupport.Type;
@@
-17,14
+14,38
@@
public abstract class Output {
*/
protected Type type;
*/
protected Type type;
+ /**
+ * The gopher hostname to use.
+ */
+ protected String hostname;
+
+ /**
+ * The sub directory and (pre-)selector to use for the resources.
+ */
+ protected String preselector;
+
+ /**
+ * The Gopher port to use.
+ */
+ protected int port;
+
/**
* Create a new {@link Output} class for the given type (which can be NULL).
*
* @param type
* the type or NULL for no type
/**
* Create a new {@link Output} class for the given type (which can be NULL).
*
* @param type
* the type or NULL for no type
+ * @param hostname
+ * the gopher hostname to use
+ * @param preselector
+ * the sub directory and (pre-)selector to use for the resources
+ * @param port
+ * the Gopher port to use
*/
*/
- public Output(Type type) {
+ public Output(Type type
, String hostname, String preselector, int port
) {
this.type = type;
this.type = type;
+ this.hostname = hostname;
+ this.preselector = preselector;
+ this.port = port;
}
/**
}
/**
@@
-42,24
+63,22
@@
public abstract class Output {
abstract public String getIndexFooter();
/**
abstract public String getIndexFooter();
/**
- * Export
a story (in resume
mode).
+ * Export
the header of a story (a <i>resume</i>
mode).
*
* @param story
* the story
*
* @return the resume
*/
*
* @param story
* the story
*
* @return the resume
*/
- abstract public String export(Story story);
+ abstract public String export
Header
(Story story);
/**
* Export a full story with comments.
*
* @param story
* the story
/**
* Export a full story with comments.
*
* @param story
* the story
- * @param comments
- * the comments
*
* @return the story
*/
*
* @return the story
*/
- abstract public String export(Story story
, List<Comment> comments
);
+ abstract public String export(Story story);
}
}