Class PZXmlUtil
java.lang.Object
zombie.util.PZXmlUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Documentstatic StringelementToPrettyString(Element element) static StringelementToPrettyStringSafe(Element element) static voidforEachElement(Element element0, Consumer<Element> consumer) static <T> Tstatic Elementstatic booleanstatic <T> booleanstatic <T> Tunmarshall(Class<T> clazz, Element element) static voidstatic <T> void
-
Constructor Details
-
PZXmlUtil
public PZXmlUtil()
-
-
Method Details
-
parseXml
- Throws:
PZXmlParserException
-
elementToPrettyStringSafe
-
elementToPrettyString
- Throws:
TransformerException
-
createNewDocument
-
forEachElement
-
parse
- Throws:
PZXmlParserException
-
unmarshall
- Throws:
PZXmlParserException
-
write
public static <T> void write(T object, File file) throws TransformerException, IOException, javax.xml.bind.JAXBException - Throws:
TransformerExceptionIOExceptionjavax.xml.bind.JAXBException
-
write
- Throws:
TransformerExceptionIOException
-
tryWrite
-
tryWrite
-