aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Cumiskey <acumiskey@apache.org>2007-10-31 10:29:02 +0000
committerAdrian Cumiskey <acumiskey@apache.org>2007-10-31 10:29:02 +0000
commite340490662dcbb38c1ef6771435b8ff4e3721cc1 (patch)
tree1c45feb7521b0f7acdb909107b2f5894d33a9dd0
parenta466d2a3123e37115c2ffdee11d2a6fe817c4eea (diff)
downloadxmlgraphics-fop-e340490662dcbb38c1ef6771435b8ff4e3721cc1.tar.gz
xmlgraphics-fop-e340490662dcbb38c1ef6771435b8ff4e3721cc1.zip
Url is actually a Uri
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@590616 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/fonts/FontLoader.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fonts/FontLoader.java b/src/java/org/apache/fop/fonts/FontLoader.java
index 2dd812211..d45e72f1b 100644
--- a/src/java/org/apache/fop/fonts/FontLoader.java
+++ b/src/java/org/apache/fop/fonts/FontLoader.java
@@ -117,7 +117,7 @@ public abstract class FontLoader {
if (log.isDebugEnabled()) {
log.debug("opening " + effURI);
}
- InputStream in = openFontUrl(resolver, effURI);
+ InputStream in = openFontUri(resolver, effURI);
return loadFontFromInputStream(fontFileURI, resolver, type1, in);
}
@@ -148,14 +148,14 @@ public abstract class FontLoader {
}
/**
- * Opens a font file and returns an input stream.
+ * Opens a font uri and returns an input stream.
* @param resolver the FontResolver to use for font URI resolution
* @param uri the URI representing the font
* @return the InputStream to read the font from.
* @throws IOException In case of an I/O error
* @throws MalformedURLException If an invalid URL is built
*/
- private static InputStream openFontUrl(FontResolver resolver, String uri)
+ private static InputStream openFontUri(FontResolver resolver, String uri)
throws IOException, MalformedURLException {
InputStream in = null;
if (resolver != null) {