gianugo 02/02/03 08:18:51 Modified: src/java/org/apache/cocoon/generation DirectoryGenerator.java Log: Two small fixes: - start/endElement() qName should be the raw XML name, not URI+localname - recycled some stuff Revision Changes Path 1.2 +18 -3 xml-cocoon2/src/java/org/apache/cocoon/generation/DirectoryGenerator.java Index: DirectoryGenerator.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/generation/DirectoryGenerator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- DirectoryGenerator.java 3 Jan 2002 12:31:16 -0000 1.1 +++ DirectoryGenerator.java 3 Feb 2002 16:18:51 -0000 1.2 @@ -62,7 +62,7 @@ * (Apache Software Foundation, Exoffice Technologies) * @author <a href="mailto:[EMAIL PROTECTED]">Conny Krappatsch</a> * (SMB GmbH) for Virbus AG - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:16 $ */ + * @version CVS $Revision: 1.2 $ $Date: 2002/02/03 16:18:51 $ */ public class DirectoryGenerator extends ComposerGenerator implements Recyclable { private static final String FILE = "file:"; @@ -278,7 +278,7 @@ protected void startNode(String nodeName, File path) throws SAXException { setNodeAttributes(path); - super.contentHandler.startElement(URI, nodeName, URI+':'+nodeName, attributes); + super.contentHandler.startElement(URI, nodeName, PREFIX+':'+nodeName, attributes); } @@ -327,7 +327,7 @@ */ protected void endNode(String nodeName) throws SAXException { - super.contentHandler.endElement(URI, nodeName, URI+':'+nodeName); + super.contentHandler.endElement(URI, nodeName, PREFIX+':'+nodeName); } @@ -376,5 +376,20 @@ return (this.excludeRE == null) ? false : this.excludeRE.match(path.getName()); + } + + /** + * Recycle resources + * + */ + + public void recycle() { + super.recycle(); + this.attributes = null; + this.dateFormatter = null; + this.rootRE = null; + this.includeRE = null; + this.excludeRE = null; + } }
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]