# OutputKeys

public class **OutputKeys** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
Provides string constants that can be used to set
output properties for a Transformer, or to retrieve
output properties from a Transformer or Templates object.

All the fields in this class are read-only.

<br />

##### See Also

- [section 16 of the XSL Transformations (XSLT) W3C Recommendation](http://www.w3.org/TR/xslt#output)

### Constant Summary

|---|---|---|
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [CDATA_SECTION_ELEMENTS](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/OutputKeys.html#CDATA_SECTION_ELEMENTS) | cdata-section-elements = <var translate="no">expanded names</var>. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [DOCTYPE_PUBLIC](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/OutputKeys.html#DOCTYPE_PUBLIC) | doctype-public = <var translate="no">string</var>. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [DOCTYPE_SYSTEM](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/OutputKeys.html#DOCTYPE_SYSTEM) | doctype-system = <var translate="no">string</var>. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [ENCODING](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/OutputKeys.html#ENCODING) | encoding = <var translate="no">string</var>. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [INDENT](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/OutputKeys.html#INDENT) | indent = "yes" \| "no". |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [MEDIA_TYPE](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/OutputKeys.html#MEDIA_TYPE) | media-type = <var translate="no">string</var>. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [METHOD](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/OutputKeys.html#METHOD) | method = "xml" \| "html" \| "text" \| <var translate="no">expanded name</var>. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [OMIT_XML_DECLARATION](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/OutputKeys.html#OMIT_XML_DECLARATION) | omit-xml-declaration = "yes" \| "no". |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [STANDALONE](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/OutputKeys.html#STANDALONE) | standalone = "yes" \| "no". |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [VERSION](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/OutputKeys.html#VERSION) | version = <var translate="no">nmtoken</var>. |

### 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. |

## Constants

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

cdata-section-elements = <var translate="no">expanded names</var>.

`cdata-section-elements` specifies a whitespace delimited
list of the names of elements whose text node children should be output
using CDATA sections. Note that these names must use the format
described in the section Qualfied Name Representation in
`https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/package-summary.html`.

<br />

##### See Also

- [section 16 of the XSL Transformations (XSLT) W3C Recommendation.](http://www.w3.org/TR/xslt#output)
Constant Value: "cdata-section-elements"

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

doctype-public = <var translate="no">string</var>.

See the documentation for the `https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/OutputKeys.html#DOCTYPE_SYSTEM` property
for a description of what the value of the key should be.

<br />

##### See Also

- [section 16 of the XSL Transformations (XSLT) W3C Recommendation](http://www.w3.org/TR/xslt#output)
Constant Value: "doctype-public"

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

doctype-system = <var translate="no">string</var>.

`doctype-system` specifies the system identifier
to be used in the document type declaration.

If the doctype-system property is specified, the xml output method
should output a document type declaration immediately before the first
element. The name following \<!DOCTYPE should be the name of the first
element. If doctype-public property is also specified, then the xml
output method should output PUBLIC followed by the public identifier
and then the system identifier; otherwise, it should output SYSTEM
followed by the system identifier. The internal subset should be empty.
The value of the doctype-public property should be ignored unless the doctype-system
property is specified.

If the doctype-public or doctype-system properties are specified,
then the html output method should output a document type declaration
immediately before the first element. The name following \<!DOCTYPE
should be HTML or html. If the doctype-public property is specified,
then the output method should output PUBLIC followed by the specified
public identifier; if the doctype-system property is also specified,
it should also output the specified system identifier following the
public identifier. If the doctype-system property is specified but
the doctype-public property is not specified, then the output method
should output SYSTEM followed by the specified system identifier.

`doctype-system` specifies the system identifier
to be used in the document type declaration.

<br />

##### See Also

- [section 16 of the XSL Transformations (XSLT) W3C Recommendation](http://www.w3.org/TR/xslt#output)
Constant Value: "doctype-system"

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

encoding = <var translate="no">string</var>.

`encoding` specifies the preferred character
encoding that the Transformer should use to encode sequences of
characters as sequences of bytes. The value of the encoding property should be
treated case-insensitively. The value must only contain characters in
the range #x21 to #x7E (i.e., printable ASCII characters). The value
should either be a `charset` registered with the Internet
Assigned Numbers Authority [\[IANA\]](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/OutputKeys#IANA),
[\[RFC2278\]](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/OutputKeys#RFC2278) or start with `X-`.

<br />

##### See Also

- [section 16 of the XSL Transformations (XSLT) W3C Recommendation](http://www.w3.org/TR/xslt#output)
Constant Value: "encoding"

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

indent = "yes" \| "no".

`indent` specifies whether the Transformer may
add additional whitespace when outputting the result tree; the value
must be `yes` or `no`.

<br />

##### See Also

- [section 16 of the XSL Transformations (XSLT) W3C Recommendation](http://www.w3.org/TR/xslt#output)
Constant Value: "indent"

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

media-type = <var translate="no">string</var>.

`media-type` specifies the media type (MIME
content type) of the data that results from outputting the result
tree. The `charset` parameter should not be specified
explicitly; instead, when the top-level media type is
`text`, a `charset` parameter should be added
according to the character encoding actually used by the output
method.

<br />

##### See Also

- [section 16 of the XSL Transformations (XSLT) W3C Recommendation](http://www.w3.org/TR/xslt#output)
Constant Value: "media-type"

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

method = "xml" \| "html" \| "text" \| <var translate="no">expanded name</var>.

The value of the method property identifies the overall method that
should be used for outputting the result tree. Other non-namespaced
values may be used, such as "xhtml", but, if accepted, the handling
of such values is implementation defined. If any of the method values
are not accepted and are not namespace qualified,
then `https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/Transformer.html#setOutputProperty(java.lang.String,%20java.lang.String)`
or `https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/Transformer.html#setOutputProperties(java.util.Properties)` will
throw a `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html`.

<br />

##### See Also

- [section 16 of the XSL Transformations (XSLT) W3C Recommendation](http://www.w3.org/TR/xslt#output)
Constant Value: "method"

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

omit-xml-declaration = "yes" \| "no".

`omit-xml-declaration` specifies whether the XSLT
processor should output an XML declaration; the value must be
`yes` or `no`.

<br />

##### See Also

- [section 16 of the XSL Transformations (XSLT) W3C Recommendation](http://www.w3.org/TR/xslt#output)
Constant Value: "omit-xml-declaration"

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

standalone = "yes" \| "no".

`standalone` specifies whether the Transformer
should output a standalone document declaration; the value must be
`yes` or `no`.

<br />

##### See Also

- [section 16 of the XSL Transformations (XSLT) W3C Recommendation](http://www.w3.org/TR/xslt#output)
Constant Value: "standalone"

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

version = <var translate="no">nmtoken</var>.

`version` specifies the version of the output
method.

When the output method is "xml", the version value specifies the
version of XML to be used for outputting the result tree. The default
value for the xml output method is 1.0. When the output method is
"html", the version value indicates the version of the HTML.
The default value for the xml output method is 4.0, which specifies
that the result should be output as HTML conforming to the HTML 4.0
Recommendation \[HTML\]. If the output method is "text", the version
property is ignored.

<br />

##### See Also

- [section 16 of the XSL Transformations (XSLT) W3C Recommendation](http://www.w3.org/TR/xslt#output)
Constant Value: "version"