Class Method

java.lang.Object
org.apache.xml.serializer.Method

public final class Method extends Object
This class defines the constants which are the names of the four default output methods.

The default output methods defined are:

  • XML
  • TEXT
  • HTML
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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The output method type for HTML documents: html.
    static final String
    The output method type for text documents: text.
    static final String
    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 final String
    The output method for XHTML documents: xhtml.
    static final String
    The output method type for XML documents: xml.
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • XML

      public static final String XML
      The output method type for XML documents: xml.
      See Also:
    • HTML

      public static final String HTML
      The output method type for HTML documents: html.
      See Also:
    • XHTML

      public static final String XHTML
      The output method for XHTML documents: xhtml.

      This method type is not currently supported.

      See Also:
    • TEXT

      public static final String TEXT
      The output method type for text documents: text.
      See Also:
    • 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)
      See Also: