# SAXResult

public class **SAXResult** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
implements [Result](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/Result.html) <br />

Acts as an holder for a transformation Result.

<br />

### Constant Summary

|---|---|---|
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [FEATURE](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/sax/SAXResult.html#FEATURE) | If `https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/TransformerFactory.html#getFeature(java.lang.String)` returns true when passed this value as an argument, the Transformer supports Result output of this type. |

### Inherited Constant Summary

From interface [javax.xml.transform.Result](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/Result.html)

|---|---|---|
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [PI_DISABLE_OUTPUT_ESCAPING](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/Result.html#PI_DISABLE_OUTPUT_ESCAPING) | The name of the processing instruction that is sent if the result tree disables output escaping. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [PI_ENABLE_OUTPUT_ESCAPING](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/Result.html#PI_ENABLE_OUTPUT_ESCAPING) | The name of the processing instruction that is sent if the result tree enables output escaping at some point after having received a PI_DISABLE_OUTPUT_ESCAPING processing instruction. |

### Public Constructor Summary

|---|---|
|   | [SAXResult](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/sax/SAXResult.html#SAXResult())() Zero-argument default constructor. |
|   | [SAXResult](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/sax/SAXResult.html#SAXResult(org.xml.sax.ContentHandler))([ContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html) handler) Create a SAXResult that targets a SAX2 `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html`. |

### Public Method Summary

|---|---|
| [ContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html) | [getHandler](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/sax/SAXResult.html#getHandler())() Get the `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html` that is the Result. |
| [LexicalHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ext/LexicalHandler.html) | [getLexicalHandler](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/sax/SAXResult.html#getLexicalHandler())() Get a SAX2 `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ext/LexicalHandler.html` for the output. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getSystemId](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/sax/SAXResult.html#getSystemId())() Get the system identifier that was set with setSystemId. |
| void | [setHandler](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/sax/SAXResult.html#setHandler(org.xml.sax.ContentHandler))([ContentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html) handler) Set the target to be a SAX2 `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html`. |
| void | [setLexicalHandler](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/sax/SAXResult.html#setLexicalHandler(org.xml.sax.ext.LexicalHandler))([LexicalHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ext/LexicalHandler.html) handler) Set the SAX2 `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ext/LexicalHandler.html` for the output. |
| void | [setSystemId](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/sax/SAXResult.html#setSystemId(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId) Method setSystemId Set the systemID that may be used in association with the `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html`. |

### 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 [javax.xml.transform.Result](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/Result.html)

|---|---|
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getSystemId](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/Result.html#getSystemId())() Get the system identifier that was set with setSystemId. |
| abstract void | [setSystemId](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/Result.html#setSystemId(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId) Set the system identifier for this Result. |

## Constants

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**FEATURE**

If `https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/TransformerFactory.html#getFeature(java.lang.String)`
returns true when passed this value as an argument,
the Transformer supports Result output of this type.
Constant Value: "http://javax.xml.transform.sax.SAXResult/feature"

## Public Constructors

#### public
**SAXResult**
()

Zero-argument default constructor.

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

Create a SAXResult that targets a SAX2 `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html`.

##### Parameters

| handler | Must be a non-null ContentHandler reference. |
|---|---|

## Public Methods

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

Get the `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html` that is the Result.

##### Returns

- The ContentHandler that is to be transformation output.

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

Get a SAX2 `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ext/LexicalHandler.html` for the output.

##### Returns

- A `LexicalHandler`, or null.

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

Get the system identifier that was set with setSystemId.

##### Returns

- The system identifier that was set with setSystemId, or null if setSystemId was not called.

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

Set the target to be a SAX2 `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html`.

##### Parameters

| handler | Must be a non-null ContentHandler reference. |
|---|---|

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

Set the SAX2 `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ext/LexicalHandler.html` for the output.

This is needed to handle XML comments and the like. If the
lexical handler is not set, an attempt should be made by the
transformer to cast the `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html` to a
`LexicalHandler`.

<br />

##### Parameters

| handler | A non-null `LexicalHandler` for handling lexical parse events. |
|---|---|

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

Method setSystemId Set the systemID that may be used in association
with the `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ContentHandler.html`.

##### Parameters

| systemId | The system identifier as a URI string. |
|---|---|