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)
DeploymentDescriptor
inputStream
- 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
JAXBException
SAXException
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.