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 org.kie.internal.runtime.conf.DeploymentDescriptor |
fromXml(InputStream inputStream)
Reads XML data from given input stream and produces valid instance of
DeploymentDescriptor |
static JAXBContext |
getContext() |
static String |
toXml(org.kie.internal.runtime.conf.DeploymentDescriptor descriptor)
Serializes descriptor instance to XML
|
public static org.kie.internal.runtime.conf.DeploymentDescriptor fromXml(InputStream inputStream)
DeploymentDescriptorinputStream - input stream that comes with xml data of the descriptorpublic static String toXml(org.kie.internal.runtime.conf.DeploymentDescriptor descriptor)
descriptor - descriptor to be serializedpublic static JAXBContext getContext() throws JAXBException, SAXException
JAXBExceptionSAXExceptionCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.