public class IndentXmlString extends Object implements UnaryFunction<String,String>
| Constructor and Description |
|---|
IndentXmlString() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
apply(Document xml)
Static helper Apply.
|
static String |
apply(String xml)
Static helper Apply.
|
protected String |
doIndent(String unformattedXml)
Do indent.
|
String |
evaluate(String unformattedXml) |
protected Document |
parseXmlString(String in)
Parses the xml string.
|
public String evaluate(String unformattedXml)
evaluate in interface UnaryFunction<String,String>protected String doIndent(String unformattedXml) throws IOException
unformattedXml - the unformatted xmlIOException - Signals that an I/O exception has occurred.protected Document parseXmlString(String in)
in - the inpublic static String apply(String xml)
xml - the xmlpublic static Document apply(Document xml) throws TransformerException, UnsupportedEncodingException
xml - the xmlTransformerExceptionUnsupportedEncodingExceptionCopyright © 2019. All rights reserved.