1 16 17 18 package org.apache.xml.serialize; 19 20 21 import java.io.OutputStream ; 22 import java.io.Writer ; 23 24 25 38 public class XHTMLSerializer 39 extends HTMLSerializer 40 { 41 42 43 48 public XHTMLSerializer() 49 { 50 super( true, new OutputFormat( Method.XHTML, null, false ) ); 51 } 52 53 54 59 public XHTMLSerializer( OutputFormat format ) 60 { 61 super( true, format != null ? format : new OutputFormat( Method.XHTML, null, false ) ); 62 } 63 64 65 73 public XHTMLSerializer( Writer writer, OutputFormat format ) 74 { 75 super( true, format != null ? format : new OutputFormat( Method.XHTML, null, false ) ); 76 setOutputCharStream( writer ); 77 } 78 79 80 88 public XHTMLSerializer( OutputStream output, OutputFormat format ) 89 { 90 super( true, format != null ? format : new OutputFormat( Method.XHTML, null, false ) ); 91 setOutputByteStream( output ); 92 } 93 94 95 public void setOutputFormat( OutputFormat format ) 96 { 97 super.setOutputFormat( format != null ? format : new OutputFormat( Method.XHTML, null, false ) ); 98 } 99 100 101 } 102 | Popular Tags |