public class DataMinerInvocationManager extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
convertToString(InputStream inputStream)
Convert to string.
|
static DataMinerInvocationManager |
getInstance()
Gets the single instance of DataMinerInvocationManager.
|
String |
marshalingJSON(DataMinerInvocation dmInvocation,
boolean validateModel,
boolean prettyPrint)
Marshaling json.
|
String |
marshalingXML(DataMinerInvocation dmInvocation,
boolean validateModel,
boolean prettyPrint)
Marshaling xml.
|
DataMinerInvocation |
unmarshalingJSON(InputStream dmInvocationIS,
boolean validate)
Unmarshaling json.
|
DataMinerInvocation |
unmarshalingXML(InputStream dmInvocationIS,
boolean validateModel)
Unmarshaling xml.
|
public static DataMinerInvocationManager getInstance() throws JAXBException, IOException, SAXException
JAXBException - the JAXB exceptionIOException - Signals that an I/O exception has occurred.SAXException - the SAX exceptionpublic String marshalingXML(DataMinerInvocation dmInvocation, boolean validateModel, boolean prettyPrint) throws JAXBException
dmInvocation - the dm invocationvalidateModel - the validate modelprettyPrint - set Pretty PrintingJAXBException - the JAXB exceptionpublic String marshalingJSON(DataMinerInvocation dmInvocation, boolean validateModel, boolean prettyPrint) throws JAXBException
dmInvocation - the dm invocationvalidateModel - the validate model. If true checks the input DataMinerInvocation against the dataminer-invocation-modelprettyPrint - set Pretty PrintingJAXBException - the JAXB exceptionpublic DataMinerInvocation unmarshalingXML(InputStream dmInvocationIS, boolean validateModel) throws JAXBException, IOException
dmInvocationIS - the dm invocation isvalidateModel - the validate model. If true checks the InputStream against the dataminer-invocation-modelJAXBException - the JAXB exceptionIOException - Signals that an I/O exception has occurred.public DataMinerInvocation unmarshalingJSON(InputStream dmInvocationIS, boolean validate) throws com.google.gson.JsonSyntaxException, IOException
dmInvocationIS - the dm invocation isvalidate - the validatecom.google.gson.JsonSyntaxException - the json syntax exceptionIOException - Signals that an I/O exception has occurred.public String convertToString(InputStream inputStream) throws IOException
inputStream - the input streamIOException - Signals that an I/O exception has occurred.Copyright © 2021. All Rights Reserved.