public class DocumentEncoder extends Object
| Constructor and Description |
|---|
DocumentEncoder() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
decodeDocument(String xml)
Decode a base-64 encoded XML string into a DOM document.
|
static String |
encodeDocument(Document doc)
Encode a DOM document into a base-64 encoded string.
|
static String |
toXMLString(Document doc)
Encode the given document (DOM) into an XML string representation.
|
public static String encodeDocument(Document doc) throws Exception
doc - Exceptionpublic static Document decodeDocument(String xml) throws Exception
xml - ExceptionCopyright © 2013. All Rights Reserved.