jeremias    2003/07/04 12:45:06

  Modified:    src/java/org/apache/fop/pdf PDFFactory.java
  Log:
  Use Commons IO methods
  
  Revision  Changes    Path
  1.4       +6 -2      xml-fop/src/java/org/apache/fop/pdf/PDFFactory.java
  
  Index: PDFFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/pdf/PDFFactory.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PDFFactory.java   3 Apr 2003 12:53:44 -0000       1.3
  +++ PDFFactory.java   4 Jul 2003 19:45:06 -0000       1.4
  @@ -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 @@
                           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);
                       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to