You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2002/06/26 22:37:50 UTC

cvs commit: xml-fop/src/org/apache/fop/apps StreamRenderer.java

jeremias    2002/06/26 13:37:50

  Modified:    src/org/apache/fop/apps Tag: fop-0_20_2-maintain
                        StreamRenderer.java
  Log:
  Added licence header
  Fix possible DivByZero
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.6.2.4   +12 -4     xml-fop/src/org/apache/fop/apps/Attic/StreamRenderer.java
  
  Index: StreamRenderer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/Attic/StreamRenderer.java,v
  retrieving revision 1.6.2.3
  retrieving revision 1.6.2.4
  diff -u -r1.6.2.3 -r1.6.2.4
  --- StreamRenderer.java	11 Jun 2002 00:01:14 -0000	1.6.2.3
  +++ StreamRenderer.java	26 Jun 2002 20:37:49 -0000	1.6.2.4
  @@ -1,3 +1,9 @@
  +/*
  + * $Id$
  + * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
  + * For details on use and redistribution please refer to the
  + * LICENSE file included with these sources.
  + */
   package org.apache.fop.apps;
   
   import java.io.OutputStream;
  @@ -23,7 +29,7 @@
     PageSequences up until all the IDs required by them
     are satisfied, at which time it will render the
     pages.<P>
  - 
  +
     StreamRenderer is created by Driver and called from
     FOTreeBuilder when a PageSequence is created,
     and AreaTree when a Page is formatted.<P>
  @@ -169,8 +175,10 @@
           long timeUsed = System.currentTimeMillis() - startTime;
   
           log.debug("Total time used: " + timeUsed + "ms");
  -        log.debug("Pages rendererd: " + pageCount);
  -        log.debug("Avg render time: " + (timeUsed / pageCount) + "ms/page");
  +        log.debug("Pages rendered: " + pageCount);
  +        if (pageCount != 0) {
  +            log.debug("Avg render time: " + (timeUsed / pageCount) + "ms/page");
  +        }
       }
   
       /**
  @@ -309,7 +317,7 @@
               return true;
           }
       }
  -    
  +
          public Page getNextPage(Page current, boolean isWithinPageSequence,
                               boolean isFirstCall) {
           Page nextPage = null;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org