From: Jeremias Maerki Date: Mon, 2 Jun 2003 19:58:55 +0000 (+0000) Subject: Use Commons IO methods X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1431 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ac6bc7bc046626dbeac25f9ab08aab733779c56b;p=xmlgraphics-fop.git Use Commons IO methods git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196481 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fonts/type1/PFMFile.java b/src/java/org/apache/fop/fonts/type1/PFMFile.java index caa01b474..f32c0d151 100644 --- a/src/java/org/apache/fop/fonts/type1/PFMFile.java +++ b/src/java/org/apache/fop/fonts/type1/PFMFile.java @@ -50,16 +50,17 @@ */ package org.apache.fop.fonts.type1; +// Java import java.io.IOException; import java.io.InputStream; import java.util.Map; -//Avalon +// Apache libs import org.apache.avalon.framework.logger.AbstractLogEnabled; +import org.apache.commons.io.IOUtil; -//FOP +// FOP import org.apache.fop.fonts.Glyphs; -import org.apache.fop.util.StreamUtilities; /** * This class represents a PFM file (or parts of it) as a Java object. @@ -100,7 +101,7 @@ public class PFMFile extends AbstractLogEnabled { * @throws IOException In case of an I/O problem */ public void load(InputStream inStream) throws IOException { - final byte[] buf = StreamUtilities.toByteArray(inStream, 8000); + final byte[] buf = IOUtil.toByteArray(inStream); final InputStream bufin = new java.io.ByteArrayInputStream(buf); PFMInputStream in = new PFMInputStream(bufin); /*final int version =*/ in.readShort();