|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.twelvemonkeys.xml.DOMSerializer
public final class DOMSerializer
DOMImplementationLS backed implementation.
| Constructor Summary | |
|---|---|
DOMSerializer(OutputStream pStream,
String pEncoding)
Creates a serializer using the given byte stream and encoding. |
|
DOMSerializer(Writer pStream)
Creates a serializer using the given character stream and encoding. |
|
| Method Summary | |
|---|---|
boolean |
getPrettyPrint()
|
void |
serialize(Document pDocument)
Serializes the entire document. |
void |
serialize(Node pNode)
Serializes the given node, along with any subnodes. |
void |
setPrettyPrint(boolean pPrettyPrint)
Specifies wether the serializer should use indentation and optimize for readability. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOMSerializer(OutputStream pStream,
String pEncoding)
pStream - the byte stream.pEncoding - the encoding.
IllegalStateException - if no DOMImplementation with the right features can be instantiated.public DOMSerializer(Writer pStream)
pStream - the characted stream.
IllegalStateException - if no DOMImplementation with the right features can be instantiated.| Method Detail |
|---|
public void setPrettyPrint(boolean pPrettyPrint)
pPrettyPrint - true to enable pretty printingpublic boolean getPrettyPrint()
public void serialize(Document pDocument)
pDocument - the document.public void serialize(Node pNode)
pNode - the top node.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||