< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xml/internal/serialize/OutputFormat.java

Print this page


   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 
  23 // Aug 21, 2000:


  48  * <ul>
  49  * <li>{@link #OutputFormat(String,String,boolean)} creates a format
  50  *  for the specified method (XML, HTML, Text, etc), encoding and indentation
  51  * <li>{@link #OutputFormat(Document,String,boolean)} creates a format
  52  *  compatible with the document type (XML, HTML, Text, etc), encoding and
  53  *  indentation
  54  * </ul>
  55  *
  56  *
  57  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  58  *         <a href="mailto:visco@intalio.com">Keith Visco</a>
  59  * @see Serializer
  60  * @see Method
  61  * @see LineSeparator
  62  *
  63  * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
  64  * is replaced by that of Xalan. Main class
  65  * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
  66  * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
  67  */

  68 public class OutputFormat
  69 {
  70 
  71 
  72     public static class DTD
  73     {
  74 
  75         /**
  76          * Public identifier for HTML 4.01 (Strict) document type.
  77          */
  78         public static final String HTMLPublicId = "-//W3C//DTD HTML 4.01//EN";
  79 
  80         /**
  81          * System identifier for HTML 4.01 (Strict) document type.
  82          */
  83         public static final String HTMLSystemId =
  84             "http://www.w3.org/TR/html4/strict.dtd";
  85 
  86         /**
  87          * Public identifier for XHTML 1.0 (Strict) document type.


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.

   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 
  22 // Aug 21, 2000:


  47  * <ul>
  48  * <li>{@link #OutputFormat(String,String,boolean)} creates a format
  49  *  for the specified method (XML, HTML, Text, etc), encoding and indentation
  50  * <li>{@link #OutputFormat(Document,String,boolean)} creates a format
  51  *  compatible with the document type (XML, HTML, Text, etc), encoding and
  52  *  indentation
  53  * </ul>
  54  *
  55  *
  56  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  57  *         <a href="mailto:visco@intalio.com">Keith Visco</a>
  58  * @see Serializer
  59  * @see Method
  60  * @see LineSeparator
  61  *
  62  * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
  63  * is replaced by that of Xalan. Main class
  64  * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
  65  * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
  66  */
  67 @Deprecated
  68 public class OutputFormat
  69 {
  70 
  71 
  72     public static class DTD
  73     {
  74 
  75         /**
  76          * Public identifier for HTML 4.01 (Strict) document type.
  77          */
  78         public static final String HTMLPublicId = "-//W3C//DTD HTML 4.01//EN";
  79 
  80         /**
  81          * System identifier for HTML 4.01 (Strict) document type.
  82          */
  83         public static final String HTMLSystemId =
  84             "http://www.w3.org/TR/html4/strict.dtd";
  85 
  86         /**
  87          * Public identifier for XHTML 1.0 (Strict) document type.


< prev index next >