1 /* 2 * reserved comment block 3 * DO NOT REMOVE OR ALTER! 4 */ 5 /* 6 * Licensed to the Apache Software Foundation (ASF) under one or more 7 * contributor license agreements. See the NOTICE file distributed with 8 * this work for additional information regarding copyright ownership. 9 * The ASF licenses this file to You under the Apache License, Version 2.0 10 * (the "License"); you may not use this file except in compliance with 11 * the License. You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 */ 21 22 package com.sun.org.apache.xml.internal.serializer; 23 24 /** 25 * This class defines the constants which are the names of the four default 26 * output methods. 27 * <p> 28 * Three default output methods are defined: XML, HTML, and TEXT. 29 * These constants can be used as an argument to the 30 * OutputPropertiesFactory.getDefaultMethodProperties() method to get 31 * the properties to create a serializer. 32 * 33 * This class is a public API. 34 * 35 * @see OutputPropertiesFactory 36 * @see Serializer 37 * 38 * @xsl.usage general 39 */ 40 public final class Method 41 { 42 /** 43 * A private constructor to prevent the creation of such a class. 44 */ Method()45 private Method() { 46 47 } 48 49 /** 50 * The output method type for XML documents: <tt>xml</tt>. 51 */ 52 public static final String XML = "xml"; 53 54 /** 55 * The output method type for HTML documents: <tt>html</tt>. 56 */ 57 public static final String HTML = "html"; 58 59 /** 60 * The output method for XHTML documents, 61 * this method type is not currently supported: <tt>xhtml</tt>. 62 */ 63 public static final String XHTML = "xhtml"; 64 65 /** 66 * The output method type for text documents: <tt>text</tt>. 67 */ 68 public static final String TEXT = "text"; 69 70 /** 71 * The "internal" method, just used when no method is 72 * specified in the style sheet, and a serializer of this type wraps either an 73 * XML or HTML type (depending on the first tag in the output being html or 74 * not) 75 */ 76 public static final String UNKNOWN = ""; 77 } 78