From: Jeremias Maerki Date: Fri, 4 Jul 2003 19:45:06 +0000 (+0000) Subject: Use Commons IO methods X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1349 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d93865f3b802b0440a4b5c32df3f67bfd28e4baf;p=xmlgraphics-fop.git Use Commons IO methods git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196592 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/pdf/PDFFactory.java b/src/java/org/apache/fop/pdf/PDFFactory.java index ec5d772a6..cab819d76 100644 --- a/src/java/org/apache/fop/pdf/PDFFactory.java +++ b/src/java/org/apache/fop/pdf/PDFFactory.java @@ -50,14 +50,18 @@ */ package org.apache.fop.pdf; +// Java import java.awt.geom.Rectangle2D; import java.io.IOException; import java.io.InputStream; import java.util.List; import java.util.Map; -import org.apache.fop.util.StreamUtilities; +// Apache libs import org.apache.avalon.framework.container.ContainerUtil; +import org.apache.commons.io.IOUtil; + +// FOP import org.apache.fop.fonts.CIDFont; import org.apache.fop.fonts.CustomFont; import org.apache.fop.fonts.Font; @@ -1163,7 +1167,7 @@ public class PDFFactory { embeddedFont = new PDFT1Stream(); ((PDFT1Stream)embeddedFont).setData(pfb); } else { - byte[] file = StreamUtilities.toByteArray(in, 128000); + byte[] file = IOUtil.toByteArray(in); embeddedFont = new PDFTTFStream(file.length); ((PDFTTFStream)embeddedFont).setData(file, file.length); }