aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-08-10 12:04:16 +0000
committerJeremias Maerki <jeremias@apache.org>2005-08-10 12:04:16 +0000
commitd95e86d55500ac3ede4630bc9abcf651deb71479 (patch)
treee0dad7fa79417a8d98c356ebc796d34f15a49335
parent5dbc8424c47bcebc505ce0444eb08193a575ab1d (diff)
downloadxmlgraphics-fop-d95e86d55500ac3ede4630bc9abcf651deb71479.tar.gz
xmlgraphics-fop-d95e86d55500ac3ede4630bc9abcf651deb71479.zip
Better documentation of FOUserAgent.getStream()
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@231215 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/apps/FOUserAgent.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/apps/FOUserAgent.java b/src/java/org/apache/fop/apps/FOUserAgent.java
index d6c0dba1f..a308e6a86 100644
--- a/src/java/org/apache/fop/apps/FOUserAgent.java
+++ b/src/java/org/apache/fop/apps/FOUserAgent.java
@@ -410,21 +410,23 @@ public class FOUserAgent {
/**
- * Get an input stream for a reference.
- * Temporary solution until API better.
+ * Get an input stream for a reference. Subclass FOUserAgent and override this method to
+ * do custom URI to InputStream resolution.
+ * Temporary solution until the API is better.
* @param uri URI to access
* @return InputStream for accessing the resource.
* @throws IOException in case of an I/O problem
*/
public InputStream getStream(String uri) throws IOException {
+ //The default implementation does noting. Subclass FOUserAgent to add custom behaviour.
return null;
}
/**
* Sets the output File.
- * @param the output File
+ * @param f the output File
*/
- public void setOutputFile(File f){
+ public void setOutputFile(File f) {
this.outputFile = f;
}