From e340490662dcbb38c1ef6771435b8ff4e3721cc1 Mon Sep 17 00:00:00 2001 From: Adrian Cumiskey Date: Wed, 31 Oct 2007 10:29:02 +0000 Subject: Url is actually a Uri git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@590616 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fonts/FontLoader.java | 6 +++--- 1 file 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) { -- cgit v1.2.3