diff options
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/afp/fonts/AFPFontReader.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/afp/fonts/AFPFontReader.java b/src/java/org/apache/fop/afp/fonts/AFPFontReader.java index 16c341ac4..07fafecd1 100644 --- a/src/java/org/apache/fop/afp/fonts/AFPFontReader.java +++ b/src/java/org/apache/fop/afp/fonts/AFPFontReader.java @@ -29,8 +29,10 @@ import java.net.URL; import java.util.List; import java.util.Map; +import org.apache.commons.io.FileUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; + import org.apache.fop.afp.AFPConstants; import org.apache.fop.afp.util.StructuredFieldReader; @@ -146,7 +148,7 @@ public final class AFPFontReader { } } - File directory = new File(url.getPath()); + File directory = FileUtils.toFile(url); if (!directory.canRead()) { String msg = "Failed to read directory " + url.getPath(); log.error(msg); |