< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xml/internal/serialize/Printer.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 // Sep 14, 2000:


  30 
  31 
  32 import java.io.Writer;
  33 import java.io.StringWriter;
  34 import java.io.IOException;
  35 
  36 
  37 /**
  38  * The printer is responsible for sending text to the output stream
  39  * or writer. This class performs direct writing for efficiency.
  40  * {@link IndentPrinter} supports indentation and line wrapping by
  41  * extending this class.
  42  *
  43  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  44  *
  45  * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
  46  * is replaced by that of Xalan. Main class
  47  * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
  48  * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
  49  */

  50 public class Printer
  51 {
  52 
  53 
  54     /**
  55      * The output format associated with this serializer. This will never
  56      * be a null reference. If no format was passed to the constructor,
  57      * the default one for this document type will be used. The format
  58      * object is never changed by the serializer.
  59      */
  60     protected final OutputFormat _format;
  61 
  62 
  63     /**
  64      * The writer to which the document is written.
  65      */
  66     protected Writer             _writer;
  67 
  68 
  69     /**


   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 // Sep 14, 2000:


  29 
  30 
  31 import java.io.Writer;
  32 import java.io.StringWriter;
  33 import java.io.IOException;
  34 
  35 
  36 /**
  37  * The printer is responsible for sending text to the output stream
  38  * or writer. This class performs direct writing for efficiency.
  39  * {@link IndentPrinter} supports indentation and line wrapping by
  40  * extending this class.
  41  *
  42  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  43  *
  44  * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
  45  * is replaced by that of Xalan. Main class
  46  * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
  47  * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
  48  */
  49 @Deprecated
  50 public class Printer
  51 {
  52 
  53 
  54     /**
  55      * The output format associated with this serializer. This will never
  56      * be a null reference. If no format was passed to the constructor,
  57      * the default one for this document type will be used. The format
  58      * object is never changed by the serializer.
  59      */
  60     protected final OutputFormat _format;
  61 
  62 
  63     /**
  64      * The writer to which the document is written.
  65      */
  66     protected Writer             _writer;
  67 
  68 
  69     /**


< prev index next >