public class DeploymentDescriptorIO extends Object
XStream for serialization with special class
and field mapping for more readability of the produced XML output.| Constructor and Description |
|---|
DeploymentDescriptorIO() |
| Modifier and Type | Method and Description |
|---|---|
static DeploymentDescriptor |
fromXml(InputStream inputStream)
Reads XML data from given input stream and produces valid instance of
DeploymentDescriptor |
static JAXBContext |
getContext() |
static String |
toXml(DeploymentDescriptor descriptor)
Serializes descriptor instance to XML
|
public static DeploymentDescriptor fromXml(InputStream inputStream)
DeploymentDescriptorinputStream - input stream that comes with xml data of the descriptorpublic static String toXml(DeploymentDescriptor descriptor)
descriptor - descriptor to be serializedpublic static JAXBContext getContext() throws JAXBException, SAXException
JAXBExceptionSAXExceptionCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.