pbwest      2002/12/01 06:50:30

  Modified:    src/org/apache/fop/xml Tag: FOP_0-20-0_Alt-Design
                        XMLEventPool.java
  Log:
  Added getPoolSize().
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +12 -4     xml-fop/src/org/apache/fop/xml/Attic/XMLEventPool.java
  
  Index: XMLEventPool.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/xml/Attic/XMLEventPool.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- XMLEventPool.java 29 Nov 2002 17:27:02 -0000      1.1.2.3
  +++ XMLEventPool.java 1 Dec 2002 14:50:30 -0000       1.1.2.4
  @@ -82,9 +82,11 @@
        * @param ev - the event being returned.
        */
       public synchronized void surrenderEvent(XMLEvent ev) {
  -        System.out.println("surrenderEvent " + ev.id + "  poolSize " + poolSize);
  +        //System.out.println("surrenderEvent " + ev.id
  +                                           //+ "  poolSize " + poolSize);
           if (ev == null) return;
           if (eventSet.get(ev.id)) {
  +            //System.out.println("Event clash: " + ev);
               MessageHandler.logln
                       ("Event clash in XMLEvent pool. Id " + ev.id);
               return;
  @@ -104,5 +106,11 @@
        * @return the <tt>XMLNamespaces</tt> object.
        */
       public XMLNamespaces getNamespaces() { return namespaces; }
  +
  +    /**
  +     * Get the size of the event pool.
  +     * @return pool size.
  +     */
  +    public int getPoolSize() { return pool.size(); }
   
   }
  
  
  

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

Reply via email to