X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fgofetch%2Foutput%2FOutput.java;h=f293b047df8d351fc59971713a82f1f303f32f6c;hb=70b18499defd9bd4c32f1d60ac44b971678308c2;hp=b12596e38ac1958945211534df62e03f06066329;hpb=c8b05198d89f026d13a577f57d2dda8cb608a3be;p=gofetch.git diff --git a/src/be/nikiroo/gofetch/output/Output.java b/src/be/nikiroo/gofetch/output/Output.java index b12596e..f293b04 100644 --- a/src/be/nikiroo/gofetch/output/Output.java +++ b/src/be/nikiroo/gofetch/output/Output.java @@ -17,14 +17,38 @@ public abstract class Output { */ 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 + * @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.hostname = hostname; + this.preselector = preselector; + this.port = port; } /**