jeremias 2003/06/02 12:58:55
Modified: src/java/org/apache/fop/fonts/type1 PFMFile.java
Log:
Use Commons IO methods
Revision Changes Path
1.2 +5 -4 xml-fop/src/java/org/apache/fop/fonts/type1/PFMFile.java
Index: PFMFile.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fonts/type1/PFMFile.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PFMFile.java 11 Mar 2003 13:05:36 -0000 1.1
+++ PFMFile.java 2 Jun 2003 19:58:55 -0000 1.2
@@ -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 @@
* @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();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]