# ParserAdapter

public class **ParserAdapter** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
implements [XMLReader](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html) [DocumentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html) Adapt a SAX1 Parser as a SAX2 XMLReader.

> *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 wraps a SAX1 `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Parser.html`
and makes it act as a SAX2 `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html`,
with feature, property, and Namespace support. Note
that it is not possible to report `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html#skippedEntity(java.lang.String)` events, since SAX1 does not make that information available.

This adapter does not test for duplicate Namespace-qualified
attribute names.

<br />

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/XMLReaderAdapter.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Parser.html`

### Public Constructor Summary

|---|---|
|   | [ParserAdapter](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#ParserAdapter())() Construct a new parser adapter. |
|   | [ParserAdapter](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#ParserAdapter(org.xml.sax.Parser))([Parser](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Parser.html) parser) Construct a new parser adapter. |

### Public Method Summary

|---|---|
| void | [characters](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#characters(char[],%20int,%20int))(char\[\] ch, int start, int length) Adapter implementation method; do not call. |
| void | [endDocument](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#endDocument())() Adapter implementation method; do not call. |
| void | [endElement](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#endElement(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) qName) Adapter implementation method; do not call. |
| [ContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html) | [getContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#getContentHandler())() Return the current content handler. |
| [DTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html) | [getDTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#getDTDHandler())() Return the current DTD handler. |
| [EntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html) | [getEntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#getEntityResolver())() Return the current entity resolver. |
| [ErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html) | [getErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#getErrorHandler())() Return the current error handler. |
| boolean | [getFeature](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#getFeature(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Check a parser feature flag. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [getProperty](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#getProperty(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Get a parser property. |
| void | [ignorableWhitespace](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#ignorableWhitespace(char[],%20int,%20int))(char\[\] ch, int start, int length) Adapter implementation method; do not call. |
| void | [parse](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#parse(org.xml.sax.InputSource))([InputSource](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/InputSource.html) input) Parse an XML document. |
| void | [parse](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#parse(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId) Parse an XML document. |
| void | [processingInstruction](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.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) Adapter implementation method; do not call. |
| void | [setContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#setContentHandler(org.xml.sax.ContentHandler))([ContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html) handler) Set the content handler. |
| void | [setDTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#setDTDHandler(org.xml.sax.DTDHandler))([DTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html) handler) Set the DTD handler. |
| void | [setDocumentLocator](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#setDocumentLocator(org.xml.sax.Locator))([Locator](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Locator.html) locator) Adapter implementation method; do not call. |
| void | [setEntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#setEntityResolver(org.xml.sax.EntityResolver))([EntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html) resolver) Set the entity resolver. |
| void | [setErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#setErrorHandler(org.xml.sax.ErrorHandler))([ErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html) handler) Set the error handler. |
| void | [setFeature](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#setFeature(java.lang.String,%20boolean))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, boolean value) Set a feature flag for the parser. |
| void | [setProperty](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#setProperty(java.lang.String,%20java.lang.Object))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Set a parser property. |
| void | [startDocument](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#startDocument())() Adapter implementation method; do not call. |
| void | [startElement](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#startElement(java.lang.String,%20org.xml.sax.AttributeList))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) qName, [AttributeList](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/AttributeList.html) qAtts) Adapter implementation method; do not call. |

### 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.XMLReader](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html)

|---|---|
| abstract [ContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html) | [getContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#getContentHandler())() Return the current content handler. |
| abstract [DTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html) | [getDTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#getDTDHandler())() Return the current DTD handler. |
| abstract [EntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html) | [getEntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#getEntityResolver())() Return the current entity resolver. |
| abstract [ErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html) | [getErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#getErrorHandler())() Return the current error handler. |
| abstract boolean | [getFeature](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#getFeature(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Look up the value of a feature flag. |
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [getProperty](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#getProperty(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Look up the value of a property. |
| abstract void | [parse](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#parse(org.xml.sax.InputSource))([InputSource](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/InputSource.html) input) Parse an XML document. |
| abstract void | [parse](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#parse(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId) Parse an XML document from a system identifier (URI). |
| abstract void | [setContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#setContentHandler(org.xml.sax.ContentHandler))([ContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html) handler) Allow an application to register a content event handler. |
| abstract void | [setDTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#setDTDHandler(org.xml.sax.DTDHandler))([DTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html) handler) Allow an application to register a DTD event handler. |
| abstract void | [setEntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#setEntityResolver(org.xml.sax.EntityResolver))([EntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html) resolver) Allow an application to register an entity resolver. |
| abstract void | [setErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#setErrorHandler(org.xml.sax.ErrorHandler))([ErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html) handler) Allow an application to register an error event handler. |
| abstract void | [setFeature](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#setFeature(java.lang.String,%20boolean))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, boolean value) Set the value of a feature flag. |
| abstract void | [setProperty](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/XMLReader.html#setProperty(java.lang.String,%20java.lang.Object))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Set the value of a property. |

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

|---|---|
| abstract void | [characters](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.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/DocumentHandler.html#endDocument())() Receive notification of the end of a document. |
| abstract void | [endElement](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#endElement(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Receive notification of the end of an element. |
| abstract void | [ignorableWhitespace](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.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/DocumentHandler.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/DocumentHandler.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 | [startDocument](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#startDocument())() Receive notification of the beginning of a document. |
| abstract void | [startElement](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#startElement(java.lang.String,%20org.xml.sax.AttributeList))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [AttributeList](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/AttributeList.html) atts) Receive notification of the beginning of an element. |

## Public Constructors

#### public
**ParserAdapter**
()

Construct a new parser adapter.

Use the "org.xml.sax.parser" property to locate the
embedded SAX1 driver.

<br />

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | If the embedded driver cannot be instantiated or if the org.xml.sax.parser property is not specified. |
|---|---|

#### public
**ParserAdapter**
([Parser](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Parser.html) parser)

Construct a new parser adapter.

Note that the embedded parser cannot be changed once the
adapter is created; to embed a different parser, allocate
a new ParserAdapter.

<br />

##### Parameters

| parser | The SAX1 parser to embed. |
|---|---|

##### Throws

| [NullPointerException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NullPointerException.html) | If the parser parameter is null. |
|---|---|

## Public Methods

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

Adapter implementation method; do not call.
Adapt a SAX1 characters event.

##### Parameters

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

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | The client may raise a processing exception. |
|---|---|

##### See Also

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

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

Adapter implementation method; do not call.
Adapt a SAX1 end document event.

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | The client may raise a processing exception. |
|---|---|

##### See Also

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

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

Adapter implementation method; do not call.
Adapt a SAX1 end element event.

##### Parameters

| qName | The qualified (prefixed) name. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | The client may raise a processing exception. |
|---|---|

##### See Also

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

#### public [ContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html)
**getContentHandler**
()

Return the current content handler.

##### Returns

- The current content handler, or null if none was supplied.

##### See Also

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

#### public [DTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html)
**getDTDHandler**
()

Return the current DTD handler.

##### Returns

- the current DTD handler, or null if none was supplied

##### See Also

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

#### public [EntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html)
**getEntityResolver**
()

Return the current entity resolver.

##### Returns

- The current entity resolver, or null if none was supplied.

##### See Also

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

#### public [ErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html)
**getErrorHandler**
()

Return the current error handler.

##### Returns

- The current error handler, or null if none was supplied.

##### See Also

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

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

Check a parser feature flag.

The only features recognized are namespaces and
namespace-prefixes.

<br />

##### Parameters

| name | The feature name, as a complete URI. |
|---|---|

##### Returns

- The current feature value.

##### Throws

| [SAXNotRecognizedException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXNotRecognizedException.html) | If the feature value can't be assigned or retrieved. |
| [SAXNotSupportedException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXNotSupportedException.html) | If the feature is not currently readable. |
|---|---|

##### See Also

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

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

Get a parser property.

No properties are currently recognized.

<br />

##### Parameters

| name | The property name. |
|---|---|

##### Returns

- The property value.

##### Throws

| [SAXNotRecognizedException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXNotRecognizedException.html) | If the property value can't be assigned or retrieved. |
| [SAXNotSupportedException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXNotSupportedException.html) | If the property value is not currently readable. |
|---|---|

##### See Also

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

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

Adapter implementation method; do not call.
Adapt a SAX1 ignorable whitespace event.

##### Parameters

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

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | The client may raise a processing exception. |
|---|---|

##### See Also

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

#### public void
**parse**
([InputSource](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/InputSource.html) input)

Parse an XML document.

##### Parameters

| input | An input source for the document. |
|---|---|

##### Throws

| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | If there is a problem reading the raw content of the document. |
| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | If there is a problem processing the document. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#parse(java.lang.String)`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Parser.html#parse(org.xml.sax.InputSource)`

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

Parse an XML document.

##### Parameters

| systemId | The absolute URL of the document. |
|---|---|

##### Throws

| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | If there is a problem reading the raw content of the document. |
| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | If there is a problem processing the document. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/ParserAdapter.html#parse(org.xml.sax.InputSource)`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Parser.html#parse(java.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)

Adapter implementation method; do not call.
Adapt a SAX1 processing instruction event.

##### Parameters

| target | The processing instruction target. |
| data | The remainder of the processing instruction |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | The client may raise a processing exception. |
|---|---|

##### See Also

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

#### public void
**setContentHandler**
([ContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html) handler)

Set the content handler.

##### Parameters

| handler | the new content handler |
|---|---|

##### See Also

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

#### public void
**setDTDHandler**
([DTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html) handler)

Set the DTD handler.

##### Parameters

| handler | the new DTD handler |
|---|---|

##### See Also

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

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

Adapter implementation method; do not call.
Adapt a SAX1 document locator event.

##### Parameters

| locator | A document locator. |
|---|---|

##### See Also

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

#### public void
**setEntityResolver**
([EntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html) resolver)

Set the entity resolver.

##### Parameters

| resolver | The new entity resolver. |
|---|---|

##### See Also

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

#### public void
**setErrorHandler**
([ErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html) handler)

Set the error handler.

##### Parameters

| handler | The new error handler. |
|---|---|

##### See Also

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

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

Set a feature flag for the parser.

The only features recognized are namespaces and
namespace-prefixes.

<br />

##### Parameters

| name | The feature name, as a complete URI. |
| value | The requested feature value. |
|---|---|

##### Throws

| [SAXNotRecognizedException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXNotRecognizedException.html) | If the feature can't be assigned or retrieved. |
| [SAXNotSupportedException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXNotSupportedException.html) | If the feature can't be assigned that value. |
|---|---|

##### See Also

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

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

Set a parser property.

No properties are currently recognized.

<br />

##### Parameters

| name | The property name. |
| value | The property value. |
|---|---|

##### Throws

| [SAXNotRecognizedException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXNotRecognizedException.html) | If the property value can't be assigned or retrieved. |
| [SAXNotSupportedException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXNotSupportedException.html) | If the property can't be assigned that value. |
|---|---|

##### See Also

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

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

Adapter implementation method; do not call.
Adapt a SAX1 start document event.

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | The client may raise a processing exception. |
|---|---|

##### See Also

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

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

Adapter implementation method; do not call.
Adapt a SAX1 startElement event.

If necessary, perform Namespace processing.

<br />

##### Parameters

| qName | The qualified (prefixed) name. |
| qAtts | The XML attribute list (with qnames). |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | The client may raise a processing exception. |
|---|---|