You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@excalibur.apache.org by cz...@apache.org on 2004/06/21 14:51:43 UTC
svn commit: rev 21537 - excalibur/trunk/xmlutil/src/java/org/apache/excalibur/xml/sax
Author: cziegeler
Date: Mon Jun 21 05:51:42 2004
New Revision: 21537
Added:
excalibur/trunk/xmlutil/src/java/org/apache/excalibur/xml/sax/NOPXMLConsumer.java
Removed:
excalibur/trunk/xmlutil/src/java/org/apache/excalibur/xml/sax/AbstractXMLConsumer.java
Modified:
excalibur/trunk/xmlutil/src/java/org/apache/excalibur/xml/sax/ContentHandlerWrapper.java
Log:
Cleaning up a little bit.
Removing wrong deprecated info, remove deprecated class, add new class
Modified: excalibur/trunk/xmlutil/src/java/org/apache/excalibur/xml/sax/ContentHandlerWrapper.java
==============================================================================
--- excalibur/trunk/xmlutil/src/java/org/apache/excalibur/xml/sax/ContentHandlerWrapper.java (original)
+++ excalibur/trunk/xmlutil/src/java/org/apache/excalibur/xml/sax/ContentHandlerWrapper.java Mon Jun 21 05:51:42 2004
@@ -28,13 +28,13 @@
* its {@link XMLConsumer}s interface.
* <br>
*
- * @deprecated Moved to org.apache.excalibur.xml.sax package. Modified to be
- * thread safe.
+ * Modified to be thread safe.
+ *
* @author <a href="mailto:dev@avalon.apache.org">Avalon Development Team</a>
* @version CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:20 $
*/
public class ContentHandlerWrapper
- extends AbstractXMLConsumer
+ implements ContentHandler
{
/** The current {@link ContentHandler}. */
private ContentHandler m_contentHandler;
Added: excalibur/trunk/xmlutil/src/java/org/apache/excalibur/xml/sax/NOPXMLConsumer.java
==============================================================================
--- (empty file)
+++ excalibur/trunk/xmlutil/src/java/org/apache/excalibur/xml/sax/NOPXMLConsumer.java Mon Jun 21 05:51:42 2004
@@ -0,0 +1,108 @@
+/*
+ * Copyright 2002-2004 The Apache Software Foundation
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.excalibur.xml.sax;
+
+import org.xml.sax.SAXException;
+
+/**
+ * This class provides default implementation of the methods specified
+ * by the <code>LexicalHandler</code> and the <code>ContentHandler</code>
+ * interface.
+ *
+ * @author <a href="mailto:dev@avalon.apache.org">Avalon Development Team</a>
+ * @version CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:20 $
+ */
+public class NOPXMLConsumer
+ extends NOPContentHandler
+ implements XMLConsumer
+{
+
+ /**
+ * Report the start of DTD declarations, if any.
+ *
+ * @param name The document type name.
+ * @param publicId The declared public identifier for the external DTD
+ * subset, or null if none was declared.
+ * @param systemId The declared system identifier for the external DTD
+ * subset, or null if none was declared.
+ */
+ public void startDTD( final String name,
+ final String publicId,
+ final String systemId )
+ throws SAXException
+ {
+ }
+
+ /**
+ * Report the end of DTD declarations.
+ */
+ public void endDTD()
+ throws SAXException
+ {
+ }
+
+ /**
+ * Report the beginning of an entity.
+ *
+ * @param name The name of the entity. If it is a parameter entity, the
+ * name will begin with '%'.
+ */
+ public void startEntity( final String name )
+ throws SAXException
+ {
+ }
+
+ /**
+ * Report the end of an entity.
+ *
+ * @param name The name of the entity that is ending.
+ */
+ public void endEntity( final String name )
+ throws SAXException
+ {
+ }
+
+ /**
+ * Report the start of a CDATA section.
+ */
+ public void startCDATA()
+ throws SAXException
+ {
+ }
+
+ /**
+ * Report the end of a CDATA section.
+ */
+ public void endCDATA()
+ throws SAXException
+ {
+ }
+
+ /**
+ * Report an XML comment anywhere in the document.
+ *
+ * @param ch An array holding the characters in the comment.
+ * @param start The starting position in the array.
+ * @param len The number of characters to use from the array.
+ */
+ public void comment( final char[] ch,
+ final int start,
+ final int len )
+ throws SAXException
+ {
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: scm-unsubscribe@excalibur.apache.org
For additional commands, e-mail: scm-help@excalibur.apache.org