]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Use Commons IO methods
authorJeremias Maerki <jeremias@apache.org>
Mon, 2 Jun 2003 19:58:55 +0000 (19:58 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 2 Jun 2003 19:58:55 +0000 (19:58 +0000)
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

index caa01b474bd66b8ccbf6ebb2afe2d0917f42f1e2..f32c0d15116182ee4db40b48cc6c961e8717e77a 100644 (file)
  */ 
 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();