+++ /dev/null
-/*
- * $Id$
- *
- * ============================================================================
- * The Apache Software License, Version 1.1
- * ============================================================================
- *
- * Copyright (C) 1999-2004 The Apache Software Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modifica-
- * tion, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any, must
- * include the following acknowledgment: "This product includes software
- * developed by the Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself, if
- * and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "FOP" and "Apache Software Foundation" must not be used to
- * endorse or promote products derived from this software without prior
- * written permission. For written permission, please contact
- * apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache", nor may
- * "Apache" appear in their name, without prior written permission of the
- * Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * on behalf of the Apache Software Foundation and was originally created by
- * James Tauber <jtauber@jtauber.com>. For more information on the Apache
- * Software Foundation, please see <http://www.apache.org/>.
- *
- * @author <a href="mailto:pbwest@powerup.com.au">Peter B. West</a>
- * @version $Revision$ $Name$
- */
-package org.apache.fop.pool;
-
-import org.apache.fop.xml.XmlEvent;
-
-/**
- * This class provides a pool of <tt>XmlEvent</tt> objects.
- */
-
-public class XMLEventPool extends FopPool {
-
- private static final String tag = "$Name$";
- private static final String revision = "$Revision$";
-
- /** Required argument for constructing new <tt>XmlEvent</tt>s. */
- //protected final Namespaces namespaces;
- /**
- * The zero-argument constructor
- */
- public XMLEventPool() {
- }
-
- /**
- * Construct a pool with a given initial size.
- * @param initialSize - the initial size of the pool.
- */
- public XMLEventPool(int initialSize) {
- super(initialSize);
- }
-
- /**
- * Acquire an <tt>XmlEvent</tt>.
- * @return an <tt>XmlEvent</tt>.
- */
- public synchronized XmlEvent acquireXMLEvent() {
- return (XmlEvent)acquirePoolable();
- }
-
-}
--- /dev/null
+/*
+ * $Id$
+ *
+ * ============================================================================
+ * The Apache Software License, Version 1.1
+ * ============================================================================
+ *
+ * Copyright (C) 1999-2004 The Apache Software Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modifica-
+ * tion, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any, must
+ * include the following acknowledgment: "This product includes software
+ * developed by the Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself, if
+ * and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "FOP" and "Apache Software Foundation" must not be used to
+ * endorse or promote products derived from this software without prior
+ * written permission. For written permission, please contact
+ * apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache", nor may
+ * "Apache" appear in their name, without prior written permission of the
+ * Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * on behalf of the Apache Software Foundation and was originally created by
+ * James Tauber <jtauber@jtauber.com>. For more information on the Apache
+ * Software Foundation, please see <http://www.apache.org/>.
+ *
+ * @author <a href="mailto:pbwest@powerup.com.au">Peter B. West</a>
+ * @version $Revision$ $Name$
+ */
+package org.apache.fop.pool;
+
+import org.apache.fop.xml.XmlEvent;
+
+/**
+ * This class provides a pool of <tt>XmlEvent</tt> objects.
+ */
+
+public class XmlEventPool extends FopPool {
+
+ private static final String tag = "$Name$";
+ private static final String revision = "$Revision$";
+
+ /** Required argument for constructing new <tt>XmlEvent</tt>s. */
+ //protected final Namespaces namespaces;
+ /**
+ * The zero-argument constructor
+ */
+ public XmlEventPool() {
+ }
+
+ /**
+ * Construct a pool with a given initial size.
+ * @param initialSize - the initial size of the pool.
+ */
+ public XmlEventPool(int initialSize) {
+ super(initialSize);
+ }
+
+ /**
+ * Acquire an <tt>XmlEvent</tt>.
+ * @return an <tt>XmlEvent</tt>.
+ */
+ public synchronized XmlEvent acquireXMLEvent() {
+ return (XmlEvent)acquirePoolable();
+ }
+
+}
* One instance of <i>Namespaces</i> is maintained across all documents
* that may be processed in a single invocation of <tt>XMLSerialhandler</tt>.
* A reference to that instance is kept with every instance of <tt>XmlEvent</tt>.
- * An <code>XMLEventPool</code> pool of event objects is maintained for every
+ * An <code>XmlEventPool</code> pool of event objects is maintained for every
* namesapce encountered in parsing. The pool for the
* http://www.w3.org/1999/XSL/Format (XSL_FO) namespace is created immediately;
* other pools are created only as elements from a particular namespace are
{ DefAttrNSpace, XSLNamespace, FOXNamespace, SVGNamespace };
/**
- * An array of <code>XMLEventPool</code>s. This ArrayList is indexed by
+ * An array of <code>XmlEventPool</code>s. This ArrayList is indexed by
* the namespace index used in this <code>Namespaces</code> object.
* This allows for the maintenance of individual event pools for each
* namespace active in the current document.
*/
- private XMLEventPool[] pools = new XMLEventPool[LAST_NS_INDEX + 1];
+ private XmlEventPool[] pools = new XmlEventPool[LAST_NS_INDEX + 1];
/**
* The pool for <code>UriLocalName</code> objects.
nsSequences[i] = 0;
}
pools[DefAttrNSIndex] =
- new XMLEventPool(INITIAL_DEF_ATTR_NS_POOL_SIZE);
+ new XmlEventPool(INITIAL_DEF_ATTR_NS_POOL_SIZE);
pools[XSLNSpaceIndex] =
- new XMLEventPool(INITIAL_XSL_NS_POOL_SIZE);
+ new XmlEventPool(INITIAL_XSL_NS_POOL_SIZE);
pools[FOXNSpaceIndex] =
- new XMLEventPool(INITIAL_FOX_NS_POOL_SIZE);
+ new XmlEventPool(INITIAL_FOX_NS_POOL_SIZE);
pools[SVGNSpaceIndex] =
- new XMLEventPool(INITIAL_SVG_NS_POOL_SIZE);
+ new XmlEventPool(INITIAL_SVG_NS_POOL_SIZE);
uriLocalNamePool = new UriLocalNamePool(BUFFER_SIZE);
}