Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Licensed to the Apache Software Foundation (ASF) under one or more
   * contributor license agreements.  See the NOTICE file distributed with
   * this work for additional information regarding copyright ownership.
   * The ASF licenses this file to You 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.cocoon.xml.sax;
 
This class provides a bridge class to connect to existing content handlers and lexical handlers.

Version:
$Id: AbstractSAXPipe.java 729283 2008-12-24 09:25:21Z cziegeler $
 
 public abstract class AbstractSAXPipe
     extends AbstractSAXProducer
     implements ContentHandlerLexicalHandler {

    
Receive an object for locating the origin of SAX document events.

Parameters:
locator An object that can return the location of any SAX document event.
 
     public void setDocumentLocator(Locator locator) {
         .setDocumentLocator(locator);
     }

    
Receive notification of the beginning of a document.
 
     public void startDocument()
     throws SAXException {
         .startDocument();
     }

    
Receive notification of the end of a document.
 
     public void endDocument()
     throws SAXException {
         .endDocument();
     }

    
Begin the scope of a prefix-URI Namespace mapping.

Parameters:
prefix The Namespace prefix being declared.
uri The Namespace URI the prefix is mapped to.
 
     public void startPrefixMapping(String prefixString uri)
     throws SAXException {
         .startPrefixMapping(prefixuri);
     }

    
End the scope of a prefix-URI mapping.

Parameters:
prefix The prefix that was being mapping.
 
     public void endPrefixMapping(String prefix)
     throws SAXException {
         .endPrefixMapping(prefix);
     }

    
Receive notification of the beginning of an element.

Parameters:
uri The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
loc The local name (without prefix), or the empty string if Namespace processing is not being performed.
raw The raw XML 1.0 name (with prefix), or the empty string if raw names are not available.
a The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
 
     public void startElement(String uriString locString rawAttributes a)
     throws SAXException {
         .startElement(urilocrawa);
     }


    
Receive notification of the end of an element.

Parameters:
uri The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
loc The local name (without prefix), or the empty string if Namespace processing is not being performed.
raw The raw XML 1.0 name (with prefix), or the empty string if raw names are not available.
    public void endElement(String uriString locString raw)
    throws SAXException {
        .endElement(urilocraw);
    }

    
Receive notification of character data.

Parameters:
c The characters from the XML document.
start The start position in the array.
len The number of characters to read from the array.
    public void characters(char c[], int startint len)
    throws SAXException {
        .characters(cstartlen);
    }

    
Receive notification of ignorable whitespace in element content.

Parameters:
c The characters from the XML document.
start The start position in the array.
len The number of characters to read from the array.
    public void ignorableWhitespace(char c[], int startint len)
    throws SAXException {
        .ignorableWhitespace(cstartlen);
    }

    
Receive notification of a processing instruction.

Parameters:
target The processing instruction target.
data The processing instruction data, or null if none was supplied.
    public void processingInstruction(String targetString data)
    throws SAXException {
        .processingInstruction(targetdata);
    }

    
Receive notification of a skipped entity.

Parameters:
name The name of the skipped entity. If it is a parameter entity, the name will begin with '%'.
    public void skippedEntity(String name)
    throws SAXException {
        .skippedEntity(name);
    }

    
Report the start of DTD declarations, if any.

Parameters:
name The document type name.
publicId The declared public identifier for the external DTD subset, or null if none was declared.
systemId The declared system identifier for the external DTD subset, or null if none was declared.
    public void startDTD(String nameString publicIdString systemId)
    throws SAXException {
        .startDTD(namepublicIdsystemId);
    }

    
Report the end of DTD declarations.
    public void endDTD()
    throws SAXException {
        .endDTD();
    }

    
Report the beginning of an entity.

Parameters:
name The name of the entity. If it is a parameter entity, the name will begin with '%'.
    public void startEntity(String name)
    throws SAXException {
        .startEntity(name);
    }

    
Report the end of an entity.

Parameters:
name The name of the entity that is ending.
    public void endEntity(String name)
    throws SAXException {
        .endEntity(name);
    }

    
Report the start of a CDATA section.
    public void startCDATA()
    throws SAXException {
        .startCDATA();
    }

    
Report the end of a CDATA section.
    public void endCDATA()
    throws SAXException {
        .endCDATA();
    }

    
Report an XML comment anywhere in the document.

Parameters:
ch An array holding the characters in the comment.
start The starting position in the array.
len The number of characters to use from the array.
    public void comment(char ch[], int startint len)
    throws SAXException {
        .comment(chstartlen);
    }
New to GrepCode? Check out our FAQ X