# DefaultHandler

public class **DefaultHandler** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
implements [EntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html) [DTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html) [ContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html) [ErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html)

|---|---|---|
| Known Direct Subclasses [DefaultHandler2](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ext/DefaultHandler2.html) |---|---| | [DefaultHandler2](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ext/DefaultHandler2.html) | This class extends the SAX2 base handler class to support the SAX2 `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ext/LexicalHandler.html`, `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ext/DeclHandler.html`, and `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ext/EntityResolver2.html` extensions. | |||

Default base class for SAX2 event handlers.

> *This module, both source code and documentation, is in the
> Public Domain, and comes with **NO WARRANTY**.* See <http://www.saxproject.org> for further information.

This class is available as a convenience base class for SAX2
applications: it provides default implementations for all of the
callbacks in the four core SAX2 handler classes:

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html`

Application writers can extend this class when they need to
implement only part of an interface; parser writers can
instantiate this class to provide default handlers when the
application has not supplied its own.

This class replaces the deprecated SAX1
`https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html` class.

<br />

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html`

### Public Constructor Summary

|---|---|
|   | [DefaultHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#DefaultHandler())() |

### Public Method Summary

|---|---|
| void | [characters](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#characters(char[],%20int,%20int))(char\[\] ch, int start, int length) Receive notification of character data inside an element. |
| void | [endDocument](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#endDocument())() Receive notification of the end of the document. |
| void | [endElement](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#endElement(java.lang.String,%20java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) uri, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) localName, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) qName) Receive notification of the end of an element. |
| void | [endPrefixMapping](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#endPrefixMapping(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) prefix) Receive notification of the end of a Namespace mapping. |
| void | [error](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#error(org.xml.sax.SAXParseException))([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) e) Receive notification of a recoverable parser error. |
| void | [fatalError](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#fatalError(org.xml.sax.SAXParseException))([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) e) Report a fatal XML parsing error. |
| void | [ignorableWhitespace](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#ignorableWhitespace(char[],%20int,%20int))(char\[\] ch, int start, int length) Receive notification of ignorable whitespace in element content. |
| void | [notationDecl](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#notationDecl(java.lang.String,%20java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId) Receive notification of a notation declaration. |
| void | [processingInstruction](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#processingInstruction(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) target, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) data) Receive notification of a processing instruction. |
| [InputSource](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/InputSource.html) | [resolveEntity](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#resolveEntity(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId) Resolve an external entity. |
| void | [setDocumentLocator](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#setDocumentLocator(org.xml.sax.Locator))([Locator](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Locator.html) locator) Receive a Locator object for document events. |
| void | [skippedEntity](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#skippedEntity(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Receive notification of a skipped entity. |
| void | [startDocument](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#startDocument())() Receive notification of the beginning of the document. |
| void | [startElement](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#startElement(java.lang.String,%20java.lang.String,%20java.lang.String,%20org.xml.sax.Attributes))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) uri, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) localName, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) qName, [Attributes](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Attributes.html) attributes) Receive notification of the start of an element. |
| void | [startPrefixMapping](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#startPrefixMapping(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) prefix, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) uri) Receive notification of the start of a Namespace mapping. |
| void | [unparsedEntityDecl](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#unparsedEntityDecl(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) notationName) Receive notification of an unparsed entity declaration. |
| void | [warning](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html#warning(org.xml.sax.SAXParseException))([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) e) Receive notification of a parser warning. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

From interface [org.xml.sax.EntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html)

|---|---|
| abstract [InputSource](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/InputSource.html) | [resolveEntity](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html#resolveEntity(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId) Allow the application to resolve external entities. |

From interface [org.xml.sax.DTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html)

|---|---|
| abstract void | [notationDecl](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html#notationDecl(java.lang.String,%20java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId) Receive notification of a notation declaration event. |
| abstract void | [unparsedEntityDecl](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html#unparsedEntityDecl(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) notationName) Receive notification of an unparsed entity declaration event. |

From interface [org.xml.sax.ContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html)

|---|---|
| abstract void | [characters](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#characters(char[],%20int,%20int))(char\[\] ch, int start, int length) Receive notification of character data. |
| abstract void | [endDocument](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#endDocument())() Receive notification of the end of a document. |
| abstract void | [endElement](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#endElement(java.lang.String,%20java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) uri, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) localName, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) qName) Receive notification of the end of an element. |
| abstract void | [endPrefixMapping](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#endPrefixMapping(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) prefix) End the scope of a prefix-URI mapping. |
| abstract void | [ignorableWhitespace](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#ignorableWhitespace(char[],%20int,%20int))(char\[\] ch, int start, int length) Receive notification of ignorable whitespace in element content. |
| abstract void | [processingInstruction](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#processingInstruction(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) target, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) data) Receive notification of a processing instruction. |
| abstract void | [setDocumentLocator](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#setDocumentLocator(org.xml.sax.Locator))([Locator](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Locator.html) locator) Receive an object for locating the origin of SAX document events. |
| abstract void | [skippedEntity](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#skippedEntity(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Receive notification of a skipped entity. |
| abstract void | [startDocument](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#startDocument())() Receive notification of the beginning of a document. |
| abstract void | [startElement](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#startElement(java.lang.String,%20java.lang.String,%20java.lang.String,%20org.xml.sax.Attributes))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) uri, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) localName, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) qName, [Attributes](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Attributes.html) atts) Receive notification of the beginning of an element. |
| abstract void | [startPrefixMapping](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#startPrefixMapping(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) prefix, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) uri) Begin the scope of a prefix-URI Namespace mapping. |

From interface [org.xml.sax.ErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html)

|---|---|
| abstract void | [error](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html#error(org.xml.sax.SAXParseException))([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) exception) Receive notification of a recoverable error. |
| abstract void | [fatalError](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html#fatalError(org.xml.sax.SAXParseException))([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) exception) Receive notification of a non-recoverable error. |
| abstract void | [warning](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html#warning(org.xml.sax.SAXParseException))([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) exception) Receive notification of a warning. |

## Public Constructors

#### public
**DefaultHandler**
()

<br />

## Public Methods

#### public void
**characters**
(char\[\] ch, int start, int length)

Receive notification of character data inside an element.

By default, do nothing. Application writers may override this
method to take specific actions for each chunk of character data
(such as adding the data to a node or buffer, or printing it to
a file).

<br />

##### Parameters

| ch | The characters. |
| start | The start position in the character array. |
| length | The number of characters to use from the character array. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#characters(char[],%20int,%20int)`

#### public void
**endDocument**
()

Receive notification of the end of the document.

By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the end
of a document (such as finalising a tree or closing an output
file).

<br />

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#endDocument()`

#### public void
**endElement**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) uri, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) localName, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) qName)

Receive notification of the end of an element.

By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the end of
each element (such as finalising a tree node or writing
output to a file).

<br />

##### Parameters

| uri | The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed. |
| localName | The local name (without prefix), or the empty string if Namespace processing is not being performed. |
| qName | The qualified name (with prefix), or the empty string if qualified names are not available. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#endElement(java.lang.String,%20java.lang.String,%20java.lang.String)`

#### public void
**endPrefixMapping**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) prefix)

Receive notification of the end of a Namespace mapping.

By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the end of
each prefix mapping.

<br />

##### Parameters

| prefix | The Namespace prefix being declared. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#endPrefixMapping(java.lang.String)`

#### public void
**error**
([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) e)

Receive notification of a recoverable parser error.

The default implementation does nothing. Application writers
may override this method in a subclass to take specific actions
for each error, such as inserting the message in a log file or
printing it to the console.

<br />

##### Parameters

| e | The warning information encoded as an exception. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html#warning(org.xml.sax.SAXParseException)`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html`

#### public void
**fatalError**
([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) e)

Report a fatal XML parsing error.

The default implementation throws a SAXParseException.
Application writers may override this method in a subclass if
they need to take specific actions for each fatal error (such as
collecting all of the errors into a single report): in any case,
the application must stop all regular processing when this
method is invoked, since the document is no longer reliable, and
the parser may no longer report parsing events.

<br />

##### Parameters

| e | The error information encoded as an exception. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html#fatalError(org.xml.sax.SAXParseException)`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html`

#### public void
**ignorableWhitespace**
(char\[\] ch, int start, int length)

Receive notification of ignorable whitespace in element content.

By default, do nothing. Application writers may override this
method to take specific actions for each chunk of ignorable
whitespace (such as adding data to a node or buffer, or printing
it to a file).

<br />

##### Parameters

| ch | The whitespace characters. |
| start | The start position in the character array. |
| length | The number of characters to use from the character array. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#ignorableWhitespace(char[],%20int,%20int)`

#### public void
**notationDecl**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId)

Receive notification of a notation declaration.

By default, do nothing. Application writers may override this
method in a subclass if they wish to keep track of the notations
declared in a document.

<br />

##### Parameters

| name | The notation name. |
| publicId | The notation public identifier, or null if not available. |
| systemId | The notation system identifier. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html#notationDecl(java.lang.String,%20java.lang.String,%20java.lang.String)`

#### public void
**processingInstruction**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) target, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) data)

Receive notification of a processing instruction.

By default, do nothing. Application writers may override this
method in a subclass to take specific actions for each
processing instruction, such as setting status variables or
invoking other methods.

<br />

##### Parameters

| target | The processing instruction target. |
| data | The processing instruction data, or null if none is supplied. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#processingInstruction(java.lang.String,%20java.lang.String)`

#### public [InputSource](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/InputSource.html)
**resolveEntity**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId)

Resolve an external entity.

Always return null, so that the parser will use the system
identifier provided in the XML document. This method implements
the SAX default behaviour: application writers can override it
in a subclass to do special translations such as catalog lookups
or URI redirection.

<br />

##### Parameters

| publicId | The public identifier, or null if none is available. |
| systemId | The system identifier provided in the XML document. |
|---|---|

##### Returns

- The new input source, or null to require the default behaviour.

##### Throws

| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | If there is an error setting up the new input source. |
| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html#resolveEntity(java.lang.String,%20java.lang.String)`

#### public void
**setDocumentLocator**
([Locator](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Locator.html) locator)

Receive a Locator object for document events.

By default, do nothing. Application writers may override this
method in a subclass if they wish to store the locator for use
with other document events.

<br />

##### Parameters

| locator | A locator for all SAX document events. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#setDocumentLocator(org.xml.sax.Locator)`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Locator.html`

#### public void
**skippedEntity**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name)

Receive notification of a skipped entity.

By default, do nothing. Application writers may override this
method in a subclass to take specific actions for each
processing instruction, such as setting status variables or
invoking other methods.

<br />

##### Parameters

| name | The name of the skipped entity. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#processingInstruction(java.lang.String,%20java.lang.String)`

#### public void
**startDocument**
()

Receive notification of the beginning of the document.

By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the beginning
of a document (such as allocating the root node of a tree or
creating an output file).

<br />

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#startDocument()`

#### public void
**startElement**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) uri, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) localName, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) qName, [Attributes](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Attributes.html) attributes)

Receive notification of the start of an element.

By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the start of
each element (such as allocating a new tree node or writing
output to a file).

<br />

##### Parameters

| uri | The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed. |
| localName | The local name (without prefix), or the empty string if Namespace processing is not being performed. |
| qName | The qualified name (with prefix), or the empty string if qualified names are not available. |
| attributes | The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#startElement(java.lang.String,%20java.lang.String,%20java.lang.String,%20org.xml.sax.Attributes)`

#### public void
**startPrefixMapping**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) prefix, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) uri)

Receive notification of the start of a Namespace mapping.

By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the start of
each Namespace prefix scope (such as storing the prefix mapping).

<br />

##### Parameters

| prefix | The Namespace prefix being declared. |
| uri | The Namespace URI mapped to the prefix. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#startPrefixMapping(java.lang.String,%20java.lang.String)`

#### public void
**unparsedEntityDecl**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) notationName)

Receive notification of an unparsed entity declaration.

By default, do nothing. Application writers may override this
method in a subclass to keep track of the unparsed entities
declared in a document.

<br />

##### Parameters

| name | The entity name. |
| publicId | The entity public identifier, or null if not available. |
| systemId | The entity system identifier. |
| notationName | The name of the associated notation. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html#unparsedEntityDecl(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)`

#### public void
**warning**
([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) e)

Receive notification of a parser warning.

The default implementation does nothing. Application writers
may override this method in a subclass to take specific actions
for each warning, such as inserting the message in a log file or
printing it to the console.

<br />

##### Parameters

| e | The warning information encoded as an exception. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html#warning(org.xml.sax.SAXParseException)`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html`