JavaScript is disabled on your browser.
javolution.xml.sax

Class DefaultHandler

    • Constructor Detail

      • DefaultHandler

        public DefaultHandler()
    • Method Detail

      • warning

        public void warning(SAXParseException e)
         throws SAXException 
        Receives notification of a warning. The default behaviour is to take no action.
        Specified by:
        warning in interface ErrorHandler
        Parameters:
        e - the warning information encapsulated in a SAX parse exception.
        Throws:
        SAXException - any SAX exception.
      • error

        public void error(SAXParseException e)
         throws SAXException 
        Receives notification of recoverable parser error. The default behaviour is to take no action.
        Specified by:
        error in interface ErrorHandler
        Parameters:
        e - the error information encapsulated in a SAX parse exception.
        Throws:
        SAXException - any SAX exception.
      • fatalError

        public void fatalError(SAXParseException e)
         throws SAXException 
        Reports a fatal XML parsing error. The default behaviour is to throw the specified exception.
        Specified by:
        fatalError in interface ErrorHandler
        Parameters:
        e - the error information encapsulated in a SAX parse exception.
        Throws:
        SAXException - any SAX exception.
      • setDocumentLocator

        public void setDocumentLocator(Locator locator)
        Description copied from interface: ContentHandler
        Receives an object for locating the origin of SAX document events.
        Specified by:
        setDocumentLocator in interface ContentHandler
        Parameters:
        locator - the document locator.
      • startElement

        public void startElement(CharArray namespaceURI,
         CharArray localName,
         CharArray qName,
         Attributes atts)
         throws SAXException 
        Description copied from interface: ContentHandler
        Receives notification of the beginning of an element.
        Specified by:
        startElement in interface ContentHandler
        Parameters:
        namespaceURI - the namespace URI, or an empty character sequence if the element has no Namespace URI or if namespace processing is not being performed.
        localName - the local name (without prefix), or an empty character sequence if namespace processing is not being performed.
        qName - the qualified name (with prefix), or an empty character sequence if qualified names are not available.
        atts - the attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
        Throws:
        SAXException - any SAX exception.
      • endElement

        public void endElement(CharArray namespaceURI,
         CharArray localName,
         CharArray qName)
         throws SAXException 
        Description copied from interface: ContentHandler
        Receives notification of the end of an element.
        Specified by:
        endElement in interface ContentHandler
        Parameters:
        namespaceURI - the namespace URI, or an empty character sequence if the element has no Namespace URI or if namespace processing is not being performed.
        localName - the local name (without prefix), or an empty character sequence if namespace processing is not being performed.
        qName - the qualified XML 1.0 name (with prefix), or an empty character sequence if qualified names are not available.
        Throws:
        SAXException - any SAX exception.
      • characters

        public void characters(char[] ch,
         int start,
         int length)
         throws SAXException 
        Description copied from interface: ContentHandler
        Receives notification of character data.
        Specified by:
        characters in interface ContentHandler
        Parameters:
        ch - the characters from the XML document.
        start - the start position in the array.
        length - the number of characters to read from the array.
        Throws:
        SAXException - any SAX exception.
      • ignorableWhitespace

        public void ignorableWhitespace(char[] ch,
         int start,
         int length)
         throws SAXException 
        Description copied from interface: ContentHandler
        Receives notification of ignorable whitespace in element content.
        Specified by:
        ignorableWhitespace in interface ContentHandler
        Parameters:
        ch - the characters from the XML document.
        start - the start position in the array.
        length - the number of characters to read from the array.
        Throws:
        SAXException - any SAX exception.
      • processingInstruction

        public void processingInstruction(CharArray target,
         CharArray data)
         throws SAXException 
        Description copied from interface: ContentHandler
        Receives notification of a processing instruction.
        Specified by:
        processingInstruction in interface ContentHandler
        Parameters:
        target - the processing instruction target.
        data - the processing instruction data, or null if none was supplied. The data does not include any whitespace separating it from the target.
        Throws:
        SAXException - any SAX exception.
      • skippedEntity

        public void skippedEntity(CharArray name)
         throws SAXException 
        Description copied from interface: ContentHandler
        Receives notification of a skipped entity.
        Specified by:
        skippedEntity in interface ContentHandler
        Parameters:
        name - the name of the skipped entity. If it is a parameter entity, the name will begin with '%', and if it is the external DTD subset, it will be the character sequence "[dtd]".
        Throws:
        SAXException - any SAX exception.
      • startElement

        protected final void startElement(CharArray uri,
         CharArray localName,
         CharArray qName,
         Attributes atts)
         throws SAXException 
        Generates compile-time error if startElement is not correctly overriden. This method generates a compile-error "final method cannot be overridden" if org.xml.sax.Attributes is used instead of javolution.xml.sax.Attributes (common mistake).
        Parameters:
        uri - the namespace URI, or an empty character sequence if the element has no Namespace URI or if namespace processing is not being performed.
        localName - the local name (without prefix), or an empty character sequence if namespace processing is not being performed.
        qName - the qualified name (with prefix), or an empty character sequence if qualified names are not available.
        atts - the attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
        Throws:
        SAXException - any SAX exception.

Copyright © 2005-2013 Javolution. All Rights Reserved.

AltStyle によって変換されたページ (->オリジナル) /