|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
AppendableStreamResult | StreamResult with an Appendable . |
CharSequenceWrapper | Wrap char[] as a CharSequence without copying. |
HTMLSerializer | |
OutputConfig | Output config. |
Serializer | Serialize SAX2 events to its textual XML representation. |
TextSerializer | |
XMLCharacterEncoder | Encodes output to an XML stream. |
XMLSerializer |
Serialize SAX2 events to its textual XML representation.
Can be used as a replacement for the serialization code in
javax.xml.transform
.
Support output to HTML, XML, XHTML and Text. Full support for XML namespaces.
Sample usage:
java.util.Properties p = new Properties();
p.setProperty(OutputKeys.METHOD, "xml");
OutputStream myOut = new java.io.FileOutputStream("my.xml");
Serializer
ser = Serializer.createSerializer(
new javax.xml.transform.stream.StreamResult(myOut), p);
ser.startDocument();
ser.startElement("", "root", "", new org.xml.sax.helpers.AttributesImpl());
ser.endElement("", "root", "");
ser.endDocument();
myOut.close();
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |