< prev index next >

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

Print this page




  43  * serializing. For usage instructions see {@link Serializer}.
  44  * <p>
  45  * If an output stream is used, the encoding is taken from the
  46  * output format (defaults to <tt>UTF-8</tt>). If a writer is
  47  * used, make sure the writer uses the same encoding (if applies)
  48  * as specified in the output format.
  49  * <p>
  50  * The serializer supports both DOM and SAX. DOM serializing is done
  51  * by calling {@link #serialize} and SAX serializing is done by firing
  52  * SAX events and using the serializer as a document handler.
  53  * <p>
  54  * If an I/O exception occurs while serializing, the serializer
  55  * will not throw an exception directly, but only throw it
  56  * at the end of serializing (either DOM or SAX's {@link
  57  * org.xml.sax.DocumentHandler#endDocument}.
  58  *
  59  *
  60  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  61  * @see Serializer
  62  *
  63  * @deprecated As of JDK 1.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 TextSerializer
  69     extends BaseMarkupSerializer
  70 {
  71 
  72 
  73     /**
  74      * Constructs a new serializer. The serializer cannot be used without
  75      * calling {@link #setOutputCharStream} or {@link #setOutputByteStream}
  76      * first.
  77      */
  78     public TextSerializer()
  79     {
  80         super( new OutputFormat( Method.TEXT, null, false ) );
  81     }
  82 
  83 




  43  * serializing. For usage instructions see {@link Serializer}.
  44  * <p>
  45  * If an output stream is used, the encoding is taken from the
  46  * output format (defaults to <tt>UTF-8</tt>). If a writer is
  47  * used, make sure the writer uses the same encoding (if applies)
  48  * as specified in the output format.
  49  * <p>
  50  * The serializer supports both DOM and SAX. DOM serializing is done
  51  * by calling {@link #serialize} and SAX serializing is done by firing
  52  * SAX events and using the serializer as a document handler.
  53  * <p>
  54  * If an I/O exception occurs while serializing, the serializer
  55  * will not throw an exception directly, but only throw it
  56  * at the end of serializing (either DOM or SAX's {@link
  57  * org.xml.sax.DocumentHandler#endDocument}.
  58  *
  59  *
  60  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  61  * @see Serializer
  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 TextSerializer
  69     extends BaseMarkupSerializer
  70 {
  71 
  72 
  73     /**
  74      * Constructs a new serializer. The serializer cannot be used without
  75      * calling {@link #setOutputCharStream} or {@link #setOutputByteStream}
  76      * first.
  77      */
  78     public TextSerializer()
  79     {
  80         super( new OutputFormat( Method.TEXT, null, false ) );
  81     }
  82 
  83 


< prev index next >