gnu.xml.aelfred2

Interface ContentHandler2

All Superinterfaces:
ContentHandler
Known Implementing Classes:
Consumer.Backdoor, DomConsumer.Handler, EventFilter, LinkFilter, NSFilter, ValidationConsumer, WellFormednessFilter, XIncludeFilter, XsltFilter

public interface ContentHandler2
extends ContentHandler

Extension to the SAX ContentHandler interface to report parsing events and parameters required by DOM Level 3 but not supported by SAX.

Method Summary

void
xmlDecl(String version, String encoding, boolean standalone, String inputEncoding)
Reports the XML declaration.

Methods inherited from interface org.xml.sax.ContentHandler

characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping

Method Details

xmlDecl

public void xmlDecl(String version,
                    String encoding,
                    boolean standalone,
                    String inputEncoding)
            throws SAXException
Reports the XML declaration.

Parameters:
version - the value of the version attribute in the XML declaration
encoding - the encoding specified in the XML declaration, if any
standalone - the standalone attribute from the XML declaration
inputEncoding - the encoding of the XML input