Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#pubctors) \| [Methods](https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#inhmethods)

# XMLFilterImpl


`
public


class
XMLFilterImpl
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


implements

https://developer.android.com/reference/org/xml/sax/ContentHandler,

https://developer.android.com/reference/org/xml/sax/DTDHandler,

https://developer.android.com/reference/org/xml/sax/EntityResolver,

https://developer.android.com/reference/org/xml/sax/ErrorHandler,

https://developer.android.com/reference/org/xml/sax/XMLFilter


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | org.xml.sax.helpers.XMLFilterImpl |

<br />

*** ** * ** ***

Base class for deriving an XML filter.

> *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 designed to sit between an `https://developer.android.com/reference/org/xml/sax/XMLReader` and the client application's event handlers. By default, it
does nothing but pass requests up to the reader and events
on to the handlers unmodified, but subclasses can override
specific methods to modify the event stream or the configuration
requests as they pass through.

<br />

**See also:**

- `https://developer.android.com/reference/org/xml/sax/XMLFilter`
- `https://developer.android.com/reference/org/xml/sax/XMLReader`
- `https://developer.android.com/reference/org/xml/sax/EntityResolver`
- `https://developer.android.com/reference/org/xml/sax/DTDHandler`
- `https://developer.android.com/reference/org/xml/sax/ContentHandler`
- `https://developer.android.com/reference/org/xml/sax/ErrorHandler`

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#XMLFilterImpl()() ` Construct an empty XML filter, with no parent. |
| ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#XMLFilterImpl(org.xml.sax.XMLReader)(https://developer.android.com/reference/org/xml/sax/XMLReader parent) ` Construct an XML filter with the specified parent. |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#characters(char[],%20int,%20int)(char[] ch, int start, int length) ` Filter a character data event. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#endDocument()() ` Filter an end document event. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#endElement(java.lang.String,%20java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String uri, https://developer.android.com/reference/java/lang/String localName, https://developer.android.com/reference/java/lang/String qName) ` Filter an end element event. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#endPrefixMapping(java.lang.String)(https://developer.android.com/reference/java/lang/String prefix) ` Filter an end Namespace prefix mapping event. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#error(org.xml.sax.SAXParseException)(https://developer.android.com/reference/org/xml/sax/SAXParseException e) ` Filter an error event. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#fatalError(org.xml.sax.SAXParseException)(https://developer.android.com/reference/org/xml/sax/SAXParseException e) ` Filter a fatal error event. |
| ` https://developer.android.com/reference/org/xml/sax/ContentHandler` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#getContentHandler()() ` Get the content event handler. |
| ` https://developer.android.com/reference/org/xml/sax/DTDHandler` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#getDTDHandler()() ` Get the current DTD event handler. |
| ` https://developer.android.com/reference/org/xml/sax/EntityResolver` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#getEntityResolver()() ` Get the current entity resolver. |
| ` https://developer.android.com/reference/org/xml/sax/ErrorHandler` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#getErrorHandler()() ` Get the current error event handler. |
| ` boolean` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#getFeature(java.lang.String)(https://developer.android.com/reference/java/lang/String name) ` Look up the value of a feature. |
| ` https://developer.android.com/reference/org/xml/sax/XMLReader` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#getParent()() ` Get the parent reader. |
| ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#getProperty(java.lang.String)(https://developer.android.com/reference/java/lang/String name) ` Look up the value of a property. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#ignorableWhitespace(char[],%20int,%20int)(char[] ch, int start, int length) ` Filter an ignorable whitespace event. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#notationDecl(java.lang.String,%20java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String name, https://developer.android.com/reference/java/lang/String publicId, https://developer.android.com/reference/java/lang/String systemId) ` Filter a notation declaration event. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#parse(java.lang.String)(https://developer.android.com/reference/java/lang/String systemId) ` Parse a document. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#parse(org.xml.sax.InputSource)(https://developer.android.com/reference/org/xml/sax/InputSource input) ` Parse a document. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#processingInstruction(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String target, https://developer.android.com/reference/java/lang/String data) ` Filter a processing instruction event. |
| ` https://developer.android.com/reference/org/xml/sax/InputSource` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#resolveEntity(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String publicId, https://developer.android.com/reference/java/lang/String systemId) ` Filter an external entity resolution. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#setContentHandler(org.xml.sax.ContentHandler)(https://developer.android.com/reference/org/xml/sax/ContentHandler handler) ` Set the content event handler. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#setDTDHandler(org.xml.sax.DTDHandler)(https://developer.android.com/reference/org/xml/sax/DTDHandler handler) ` Set the DTD event handler. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#setDocumentLocator(org.xml.sax.Locator)(https://developer.android.com/reference/org/xml/sax/Locator locator) ` Filter a new document locator event. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#setEntityResolver(org.xml.sax.EntityResolver)(https://developer.android.com/reference/org/xml/sax/EntityResolver resolver) ` Set the entity resolver. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#setErrorHandler(org.xml.sax.ErrorHandler)(https://developer.android.com/reference/org/xml/sax/ErrorHandler handler) ` Set the error event handler. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#setFeature(java.lang.String,%20boolean)(https://developer.android.com/reference/java/lang/String name, boolean value) ` Set the value of a feature. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#setParent(org.xml.sax.XMLReader)(https://developer.android.com/reference/org/xml/sax/XMLReader parent) ` Set the parent reader. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#setProperty(java.lang.String,%20java.lang.Object)(https://developer.android.com/reference/java/lang/String name, https://developer.android.com/reference/java/lang/Object value) ` Set the value of a property. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#skippedEntity(java.lang.String)(https://developer.android.com/reference/java/lang/String name) ` Filter a skipped entity event. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#startDocument()() ` Filter a start document event. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#startElement(java.lang.String,%20java.lang.String,%20java.lang.String,%20org.xml.sax.Attributes)(https://developer.android.com/reference/java/lang/String uri, https://developer.android.com/reference/java/lang/String localName, https://developer.android.com/reference/java/lang/String qName, https://developer.android.com/reference/org/xml/sax/Attributes atts) ` Filter a start element event. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#startPrefixMapping(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String prefix, https://developer.android.com/reference/java/lang/String uri) ` Filter a start Namespace prefix mapping event. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#unparsedEntityDecl(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String name, https://developer.android.com/reference/java/lang/String publicId, https://developer.android.com/reference/java/lang/String systemId, https://developer.android.com/reference/java/lang/String notationName) ` Filter an unparsed entity declaration event. |
| ` void` | ` https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#warning(org.xml.sax.SAXParseException)(https://developer.android.com/reference/org/xml/sax/SAXParseException e) ` Filter a warning event. |

### Inherited methods

From class `

https://developer.android.com/reference/java/lang/Object

` `


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/java/lang/Object#clone()()
`

Creates and returns a copy of this object.


`


boolean` `
https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
https://developer.android.com/reference/java/lang/Object#finalize()()
`

Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.


`


final

https://developer.android.com/reference/java/lang/Class<?>` `
https://developer.android.com/reference/java/lang/Object#getClass()()
`

Returns the runtime class of this `Object`.


`


int` `
https://developer.android.com/reference/java/lang/Object#hashCode()()
`

Returns a hash code value for the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notify()()
`

Wakes up a single thread that is waiting on this object's
monitor.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notifyAll()()
`

Wakes up all threads that are waiting on this object's monitor.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/java/lang/Object#toString()()
`

Returns a string representation of the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait()()
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*.


From interface `

https://developer.android.com/reference/org/xml/sax/ContentHandler

` `
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ContentHandler#characters(char[],%20int,%20int)(char[] ch, int start, int length)
`

Receive notification of character data.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ContentHandler#endDocument()()
`

Receive notification of the end of a document.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ContentHandler#endElement(java.lang.String,%20java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String uri, https://developer.android.com/reference/java/lang/String localName, https://developer.android.com/reference/java/lang/String qName)
`

Receive notification of the end of an element.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ContentHandler#endPrefixMapping(java.lang.String)(https://developer.android.com/reference/java/lang/String prefix)
`

End the scope of a prefix-URI mapping.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ContentHandler#ignorableWhitespace(char[],%20int,%20int)(char[] ch, int start, int length)
`

Receive notification of ignorable whitespace in element content.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ContentHandler#processingInstruction(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String target, https://developer.android.com/reference/java/lang/String data)
`

Receive notification of a processing instruction.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ContentHandler#setDocumentLocator(org.xml.sax.Locator)(https://developer.android.com/reference/org/xml/sax/Locator locator)
`

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


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ContentHandler#skippedEntity(java.lang.String)(https://developer.android.com/reference/java/lang/String name)
`

Receive notification of a skipped entity.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ContentHandler#startDocument()()
`

Receive notification of the beginning of a document.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ContentHandler#startElement(java.lang.String,%20java.lang.String,%20java.lang.String,%20org.xml.sax.Attributes)(https://developer.android.com/reference/java/lang/String uri, https://developer.android.com/reference/java/lang/String localName, https://developer.android.com/reference/java/lang/String qName, https://developer.android.com/reference/org/xml/sax/Attributes atts)
`

Receive notification of the beginning of an element.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ContentHandler#startPrefixMapping(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String prefix, https://developer.android.com/reference/java/lang/String uri)
`

Begin the scope of a prefix-URI Namespace mapping.


From interface `

https://developer.android.com/reference/org/xml/sax/DTDHandler

` `
abstract


void` `
https://developer.android.com/reference/org/xml/sax/DTDHandler#notationDecl(java.lang.String,%20java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String name, https://developer.android.com/reference/java/lang/String publicId, https://developer.android.com/reference/java/lang/String systemId)
`

Receive notification of a notation declaration event.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/DTDHandler#unparsedEntityDecl(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String name, https://developer.android.com/reference/java/lang/String publicId, https://developer.android.com/reference/java/lang/String systemId, https://developer.android.com/reference/java/lang/String notationName)
`

Receive notification of an unparsed entity declaration event.


From interface `

https://developer.android.com/reference/org/xml/sax/EntityResolver

` `
abstract


https://developer.android.com/reference/org/xml/sax/InputSource` `
https://developer.android.com/reference/org/xml/sax/EntityResolver#resolveEntity(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String publicId, https://developer.android.com/reference/java/lang/String systemId)
`

Allow the application to resolve external entities.


From interface `

https://developer.android.com/reference/org/xml/sax/ErrorHandler

` `
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ErrorHandler#error(org.xml.sax.SAXParseException)(https://developer.android.com/reference/org/xml/sax/SAXParseException exception)
`

Receive notification of a recoverable error.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ErrorHandler#fatalError(org.xml.sax.SAXParseException)(https://developer.android.com/reference/org/xml/sax/SAXParseException exception)
`

Receive notification of a non-recoverable error.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/ErrorHandler#warning(org.xml.sax.SAXParseException)(https://developer.android.com/reference/org/xml/sax/SAXParseException exception)
`

Receive notification of a warning.


From interface `

https://developer.android.com/reference/org/xml/sax/XMLFilter

` `
abstract


https://developer.android.com/reference/org/xml/sax/XMLReader` `
https://developer.android.com/reference/org/xml/sax/XMLFilter#getParent()()
`

Get the parent reader.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/XMLFilter#setParent(org.xml.sax.XMLReader)(https://developer.android.com/reference/org/xml/sax/XMLReader parent)
`

Set the parent reader.


From interface `

https://developer.android.com/reference/org/xml/sax/XMLReader

` `
abstract


https://developer.android.com/reference/org/xml/sax/ContentHandler` `
https://developer.android.com/reference/org/xml/sax/XMLReader#getContentHandler()()
`

Return the current content handler.


`
abstract


https://developer.android.com/reference/org/xml/sax/DTDHandler` `
https://developer.android.com/reference/org/xml/sax/XMLReader#getDTDHandler()()
`

Return the current DTD handler.


`
abstract


https://developer.android.com/reference/org/xml/sax/EntityResolver` `
https://developer.android.com/reference/org/xml/sax/XMLReader#getEntityResolver()()
`

Return the current entity resolver.


`
abstract


https://developer.android.com/reference/org/xml/sax/ErrorHandler` `
https://developer.android.com/reference/org/xml/sax/XMLReader#getErrorHandler()()
`

Return the current error handler.


`
abstract


boolean` `
https://developer.android.com/reference/org/xml/sax/XMLReader#getFeature(java.lang.String)(https://developer.android.com/reference/java/lang/String name)
`

Look up the value of a feature flag.


`
abstract


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/org/xml/sax/XMLReader#getProperty(java.lang.String)(https://developer.android.com/reference/java/lang/String name)
`

Look up the value of a property.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/XMLReader#parse(org.xml.sax.InputSource)(https://developer.android.com/reference/org/xml/sax/InputSource input)
`

Parse an XML document.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/XMLReader#parse(java.lang.String)(https://developer.android.com/reference/java/lang/String systemId)
`

Parse an XML document from a system identifier (URI).


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/XMLReader#setContentHandler(org.xml.sax.ContentHandler)(https://developer.android.com/reference/org/xml/sax/ContentHandler handler)
`

Allow an application to register a content event handler.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/XMLReader#setDTDHandler(org.xml.sax.DTDHandler)(https://developer.android.com/reference/org/xml/sax/DTDHandler handler)
`

Allow an application to register a DTD event handler.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/XMLReader#setEntityResolver(org.xml.sax.EntityResolver)(https://developer.android.com/reference/org/xml/sax/EntityResolver resolver)
`

Allow an application to register an entity resolver.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/XMLReader#setErrorHandler(org.xml.sax.ErrorHandler)(https://developer.android.com/reference/org/xml/sax/ErrorHandler handler)
`

Allow an application to register an error event handler.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/XMLReader#setFeature(java.lang.String,%20boolean)(https://developer.android.com/reference/java/lang/String name, boolean value)
`

Set the value of a feature flag.


`
abstract


void` `
https://developer.android.com/reference/org/xml/sax/XMLReader#setProperty(java.lang.String,%20java.lang.Object)(https://developer.android.com/reference/java/lang/String name, https://developer.android.com/reference/java/lang/Object value)
`

Set the value of a property.


## Public constructors

### XMLFilterImpl

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public XMLFilterImpl ()
```

Construct an empty XML filter, with no parent.

This filter will have no parent: you must assign a parent
before you start a parse or do any configuration with
setFeature or setProperty, unless you use this as a pure event
consumer rather than as an `https://developer.android.com/reference/org/xml/sax/XMLReader`.

<br />

<br />

**See also:**

- `https://developer.android.com/reference/org/xml/sax/XMLReader#setFeature(java.lang.String,%20boolean)`
- `https://developer.android.com/reference/org/xml/sax/XMLReader#setProperty(java.lang.String,%20java.lang.Object)`
- `https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#setParent(org.xml.sax.XMLReader)`

### XMLFilterImpl

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public XMLFilterImpl (XMLReader parent)
```

Construct an XML filter with the specified parent.

<br />

| Parameters ||
|---|---|
| `parent` | `XMLReader`: the XML reader from which this filter receives its events. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#setParent(org.xml.sax.XMLReader)`
- `https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#getParent()`

## Public methods

### characters

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void characters (char[] ch, 
                int start, 
                int length)
```

Filter a character data event.

<br />

| Parameters ||
|---|---|
| `ch` | `char`: An array of characters. <br /> |
| `start` | `int`: The starting position in the array. <br /> |
| `length` | `int`: The number of characters to use from the array. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### endDocument

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void endDocument ()
```

Filter an end document event.

<br />

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### endElement

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void endElement (String uri, 
                String localName, 
                String qName)
```

Filter an end element event.

<br />

| Parameters ||
|---|---|
| `uri` | `String`: The element's Namespace URI, or the empty string. <br /> |
| `localName` | `String`: The element's local name, or the empty string. <br /> |
| `qName` | `String`: The element's qualified (prefixed) name, or the empty string. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### endPrefixMapping

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void endPrefixMapping (String prefix)
```

Filter an end Namespace prefix mapping event.

<br />

| Parameters ||
|---|---|
| `prefix` | `String`: The Namespace prefix. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### error

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void error (SAXParseException e)
```

Filter an error event.

<br />

| Parameters ||
|---|---|
| `e` | `SAXParseException`: The error as an exception. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### fatalError

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void fatalError (SAXParseException e)
```

Filter a fatal error event.

<br />

| Parameters ||
|---|---|
| `e` | `SAXParseException`: The error as an exception. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### getContentHandler

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ContentHandler getContentHandler ()
```

Get the content event handler.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/ContentHandler` | The current content handler, or null if none was set. <br /> |

### getDTDHandler

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public DTDHandler getDTDHandler ()
```

Get the current DTD event handler.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/DTDHandler` | The current DTD handler, or null if none was set. <br /> |

### getEntityResolver

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public EntityResolver getEntityResolver ()
```

Get the current entity resolver.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/EntityResolver` | The current entity resolver, or null if none was set. <br /> |

### getErrorHandler

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ErrorHandler getErrorHandler ()
```

Get the current error event handler.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/ErrorHandler` | The current error handler, or null if none was set. <br /> |

### getFeature

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean getFeature (String name)
```

Look up the value of a feature.

This will always fail if the parent is null.

<br />

<br />

| Parameters ||
|---|---|
| `name` | `String`: The feature name. <br /> |

| Returns ||
|---|---|
| `boolean` | The current value of the feature. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXNotRecognizedException` | If the feature value can't be assigned or retrieved from the parent. |
| `https://developer.android.com/reference/org/xml/sax/SAXNotSupportedException` | When the parent recognizes the feature name but cannot determine its value at this time. |

### getParent

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public XMLReader getParent ()
```

Get the parent reader.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/XMLReader` | The parent XML reader, or null if none is set. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#setParent(org.xml.sax.XMLReader)`

### getProperty

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Object getProperty (String name)
```

Look up the value of a property.

<br />

| Parameters ||
|---|---|
| `name` | `String`: The property name. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/Object` | The current value of the property. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXNotRecognizedException` | If the property value can't be assigned or retrieved from the parent. |
| `https://developer.android.com/reference/org/xml/sax/SAXNotSupportedException` | When the parent recognizes the property name but cannot determine its value at this time. |

### ignorableWhitespace

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void ignorableWhitespace (char[] ch, 
                int start, 
                int length)
```

Filter an ignorable whitespace event.

<br />

| Parameters ||
|---|---|
| `ch` | `char`: An array of characters. <br /> |
| `start` | `int`: The starting position in the array. <br /> |
| `length` | `int`: The number of characters to use from the array. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### notationDecl

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void notationDecl (String name, 
                String publicId, 
                String systemId)
```

Filter a notation declaration event.

<br />

| Parameters ||
|---|---|
| `name` | `String`: The notation name. <br /> |
| `publicId` | `String`: The notation's public identifier, or null. <br /> |
| `systemId` | `String`: The notation's system identifier, or null. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### parse

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void parse (String systemId)
```

Parse a document.

<br />

| Parameters ||
|---|---|
| `systemId` | `String`: The system identifier as a fully-qualified URI. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/io/IOException` | An IO exception from the parser, possibly from a byte stream or character stream supplied by the application. |
| `https://developer.android.com/reference/org/xml/sax/SAXException` | Any SAX exception, possibly wrapping another exception. |

### parse

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void parse (InputSource input)
```

Parse a document.

<br />

| Parameters ||
|---|---|
| `input` | `InputSource`: The input source for the document entity. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/io/IOException` | An IO exception from the parser, possibly from a byte stream or character stream supplied by the application. |
| `https://developer.android.com/reference/org/xml/sax/SAXException` | Any SAX exception, possibly wrapping another exception. |

### processingInstruction

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void processingInstruction (String target, 
                String data)
```

Filter a processing instruction event.

<br />

| Parameters ||
|---|---|
| `target` | `String`: The processing instruction target. <br /> |
| `data` | `String`: The text following the target. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### resolveEntity

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public InputSource resolveEntity (String publicId, 
                String systemId)
```

Filter an external entity resolution.

<br />

| Parameters ||
|---|---|
| `publicId` | `String`: The entity's public identifier, or null. <br /> |
| `systemId` | `String`: The entity's system identifier. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/InputSource` | A new InputSource or null for the default. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/io/IOException` | The client may throw an I/O-related exception while obtaining the new InputSource. |
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### setContentHandler

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setContentHandler (ContentHandler handler)
```

Set the content event handler.

<br />

| Parameters ||
|---|---|
| `handler` | `ContentHandler`: the new content handler <br /> |

### setDTDHandler

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setDTDHandler (DTDHandler handler)
```

Set the DTD event handler.

<br />

| Parameters ||
|---|---|
| `handler` | `DTDHandler`: the new DTD handler <br /> |

### setDocumentLocator

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setDocumentLocator (Locator locator)
```

Filter a new document locator event.

<br />

| Parameters ||
|---|---|
| `locator` | `Locator`: The document locator. <br /> |

### setEntityResolver

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setEntityResolver (EntityResolver resolver)
```

Set the entity resolver.

<br />

| Parameters ||
|---|---|
| `resolver` | `EntityResolver`: The new entity resolver. <br /> |

### setErrorHandler

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setErrorHandler (ErrorHandler handler)
```

Set the error event handler.

<br />

| Parameters ||
|---|---|
| `handler` | `ErrorHandler`: the new error handler <br /> |

### setFeature

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setFeature (String name, 
                boolean value)
```

Set the value of a feature.

This will always fail if the parent is null.

<br />

<br />

| Parameters ||
|---|---|
| `name` | `String`: The feature name. <br /> |
| `value` | `boolean`: The requested feature value. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXNotRecognizedException` | If the feature value can't be assigned or retrieved from the parent. |
| `https://developer.android.com/reference/org/xml/sax/SAXNotSupportedException` | When the parent recognizes the feature name but cannot set the requested value. |

### setParent

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setParent (XMLReader parent)
```

Set the parent reader.

This is the `https://developer.android.com/reference/org/xml/sax/XMLReader` from which
this filter will obtain its events and to which it will pass its
configuration requests. The parent may itself be another filter.

If there is no parent reader set, any attempt to parse
or to set or get a feature or property will fail.

<br />

<br />

| Parameters ||
|---|---|
| `parent` | `XMLReader`: The parent XML reader. <br /> |

**See also:**

- `https://developer.android.com/reference/org/xml/sax/helpers/XMLFilterImpl#getParent()`

### setProperty

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setProperty (String name, 
                Object value)
```

Set the value of a property.

This will always fail if the parent is null.

<br />

<br />

| Parameters ||
|---|---|
| `name` | `String`: The property name. <br /> |
| `value` | `Object`: The requested property value. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXNotRecognizedException` | If the property value can't be assigned or retrieved from the parent. |
| `https://developer.android.com/reference/org/xml/sax/SAXNotSupportedException` | When the parent recognizes the property name but cannot set the requested value. |

### skippedEntity

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void skippedEntity (String name)
```

Filter a skipped entity event.

<br />

| Parameters ||
|---|---|
| `name` | `String`: The name of the skipped entity. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### startDocument

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void startDocument ()
```

Filter a start document event.

<br />

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### startElement

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void startElement (String uri, 
                String localName, 
                String qName, 
                Attributes atts)
```

Filter a start element event.

<br />

| Parameters ||
|---|---|
| `uri` | `String`: The element's Namespace URI, or the empty string. <br /> |
| `localName` | `String`: The element's local name, or the empty string. <br /> |
| `qName` | `String`: The element's qualified (prefixed) name, or the empty string. <br /> |
| `atts` | `Attributes`: The element's attributes. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### startPrefixMapping

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void startPrefixMapping (String prefix, 
                String uri)
```

Filter a start Namespace prefix mapping event.

<br />

| Parameters ||
|---|---|
| `prefix` | `String`: The Namespace prefix. <br /> |
| `uri` | `String`: The Namespace URI. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### unparsedEntityDecl

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void unparsedEntityDecl (String name, 
                String publicId, 
                String systemId, 
                String notationName)
```

Filter an unparsed entity declaration event.

<br />

| Parameters ||
|---|---|
| `name` | `String`: The entity name. <br /> |
| `publicId` | `String`: The entity's public identifier, or null. <br /> |
| `systemId` | `String`: The entity's system identifier, or null. <br /> |
| `notationName` | `String`: The name of the associated notation. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |

### warning

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void warning (SAXParseException e)
```

Filter a warning event.

<br />

| Parameters ||
|---|---|
| `e` | `SAXParseException`: The warning as an exception. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/org/xml/sax/SAXException` | The client may throw an exception during processing. |