org.apache.xml.serializer

Class Method

public final class Method extends Object

This class defines the constants which are the names of the four default output methods.

Three default output methods are defined: XML, HTML, and TEXT. These constants can be used as an argument to the OutputPropertiesFactory.getDefaultMethodProperties() method to get the properties to create a serializer. This class is a public API.

See Also: OutputPropertiesFactory

UNKNOWN: general

Field Summary
static StringHTML
The output method type for HTML documents: html.
static StringTEXT
The output method type for text documents: text.
static StringUNKNOWN
The "internal" method, just used when no method is specified in the style sheet, and a serializer of this type wraps either an XML or HTML type (depending on the first tag in the output being html or not)
static StringXHTML
The output method for XHTML documents, this method type is not currently supported: xhtml.
static StringXML
The output method type for XML documents: xml.

Field Detail

HTML

public static final String HTML
The output method type for HTML documents: html.

TEXT

public static final String TEXT
The output method type for text documents: text.

UNKNOWN

public static final String UNKNOWN
The "internal" method, just used when no method is specified in the style sheet, and a serializer of this type wraps either an XML or HTML type (depending on the first tag in the output being html or not)

XHTML

public static final String XHTML
The output method for XHTML documents, this method type is not currently supported: xhtml.

XML

public static final String XML
The output method type for XML documents: xml.
Copyright B) 2005 Apache XML Project. All Rights Reserved.