diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2007-10-31 10:29:02 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2007-10-31 10:29:02 +0000 |
commit | e340490662dcbb38c1ef6771435b8ff4e3721cc1 (patch) | |
tree | 1c45feb7521b0f7acdb909107b2f5894d33a9dd0 | |
parent | a466d2a3123e37115c2ffdee11d2a6fe817c4eea (diff) | |
download | xmlgraphics-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.java | 6 |
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) { |