1 57 58 59 package com.sun.org.apache.xml.internal.serialize; 60 61 62 import java.io.OutputStream ; 63 import java.io.Writer ; 64 65 66 76 public class XHTMLSerializer 77 extends HTMLSerializer 78 { 79 80 81 86 public XHTMLSerializer() 87 { 88 super( true, new OutputFormat( Method.XHTML, null, false ) ); 89 } 90 91 92 97 public XHTMLSerializer( OutputFormat format ) 98 { 99 super( true, format != null ? format : new OutputFormat( Method.XHTML, null, false ) ); 100 } 101 102 103 111 public XHTMLSerializer( Writer writer, OutputFormat format ) 112 { 113 super( true, format != null ? format : new OutputFormat( Method.XHTML, null, false ) ); 114 setOutputCharStream( writer ); 115 } 116 117 118 126 public XHTMLSerializer( OutputStream output, OutputFormat format ) 127 { 128 super( true, format != null ? format : new OutputFormat( Method.XHTML, null, false ) ); 129 setOutputByteStream( output ); 130 } 131 132 133 public void setOutputFormat( OutputFormat format ) 134 { 135 super.setOutputFormat( format != null ? format : new OutputFormat( Method.XHTML, null, false ) ); 136 } 137 138 139 } 140 | Popular Tags |