]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added getPoolSize().
authorPeter Bernard West <pbwest@apache.org>
Sun, 1 Dec 2002 14:50:30 +0000 (14:50 +0000)
committerPeter Bernard West <pbwest@apache.org>
Sun, 1 Dec 2002 14:50:30 +0000 (14:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195694 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/xml/XMLEventPool.java

index b4f2c7b40528484b3668acb72c26bf86f80c7bae..878f7c1e0c10cbffd9ba81ae725b72026a5bc5b1 100644 (file)
@@ -82,9 +82,11 @@ public class XMLEventPool {
      * @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;
@@ -105,4 +107,10 @@ public class XMLEventPool {
      */
     public XMLNamespaces getNamespaces() { return namespaces; }
 
+    /**
+     * Get the size of the event pool.
+     * @return pool size.
+     */
+    public int getPoolSize() { return pool.size(); }
+
 }