From ac6bc7bc046626dbeac25f9ab08aab733779c56b Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 2 Jun 2003 19:58:55 +0000 Subject: [PATCH] Use Commons IO methods git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196481 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fonts/type1/PFMFile.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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(); -- 2.39.5