< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xml/internal/serialize/XHTMLSerializer.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 package com.sun.org.apache.xml.internal.serialize;
  24 
  25 
  26 import java.io.OutputStream;
  27 import java.io.Writer;
  28 
  29 
  30 /**
  31  * Implements an XHTML serializer supporting both DOM and SAX
  32  * pretty serializing. For usage instructions see either {@link
  33  * Serializer} or {@link BaseMarkupSerializer}.
  34  *
  35  * @deprecated This class was deprecated in Xerces 2.6.2. It is
  36  * recommended that new applications use JAXP's Transformation API
  37  * for XML (TrAX) for serializing XHTML. See the Xerces documentation
  38  * for more information.
  39  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  40  * @see Serializer
  41  */

  42 public class XHTMLSerializer
  43     extends HTMLSerializer
  44 {
  45 
  46 
  47     /**
  48      * Constructs a new serializer. The serializer cannot be used without
  49      * calling {@link #setOutputCharStream} or {@link #setOutputByteStream}
  50      * first.
  51      */
  52     public XHTMLSerializer()
  53     {
  54         super( true, new OutputFormat( Method.XHTML, null, false ) );
  55     }
  56 
  57 
  58     /**
  59      * Constructs a new serializer. The serializer cannot be used without
  60      * calling {@link #setOutputCharStream} or {@link #setOutputByteStream}
  61      * first.


   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 package com.sun.org.apache.xml.internal.serialize;
  23 
  24 
  25 import java.io.OutputStream;
  26 import java.io.Writer;
  27 
  28 
  29 /**
  30  * Implements an XHTML serializer supporting both DOM and SAX
  31  * pretty serializing. For usage instructions see either {@link
  32  * Serializer} or {@link BaseMarkupSerializer}.
  33  *
  34  * @deprecated This class was deprecated in Xerces 2.6.2. It is
  35  * recommended that new applications use JAXP's Transformation API
  36  * for XML (TrAX) for serializing XHTML. See the Xerces documentation
  37  * for more information.
  38  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  39  * @see Serializer
  40  */
  41 @Deprecated
  42 public class XHTMLSerializer
  43     extends HTMLSerializer
  44 {
  45 
  46 
  47     /**
  48      * Constructs a new serializer. The serializer cannot be used without
  49      * calling {@link #setOutputCharStream} or {@link #setOutputByteStream}
  50      * first.
  51      */
  52     public XHTMLSerializer()
  53     {
  54         super( true, new OutputFormat( Method.XHTML, null, false ) );
  55     }
  56 
  57 
  58     /**
  59      * Constructs a new serializer. The serializer cannot be used without
  60      * calling {@link #setOutputCharStream} or {@link #setOutputByteStream}
  61      * first.


< prev index next >