diff options
author | Jeremias Maerki <jeremias@apache.org> | 2003-07-04 19:45:06 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2003-07-04 19:45:06 +0000 |
commit | d93865f3b802b0440a4b5c32df3f67bfd28e4baf (patch) | |
tree | 1d51a329b41938e5a5b1559a9c22911c444127e7 /src/java/org/apache/fop/pdf | |
parent | bdccae8d8902398e815bbf86585da429198eef0b (diff) | |
download | xmlgraphics-fop-d93865f3b802b0440a4b5c32df3f67bfd28e4baf.tar.gz xmlgraphics-fop-d93865f3b802b0440a4b5c32df3f67bfd28e4baf.zip |
Use Commons IO methods
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196592 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/pdf')
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFFactory.java | 8 |
1 files changed, 6 insertions, 2 deletions
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); } |