public class Dsmlv2Engine extends Object
Constructor and Description |
---|
Dsmlv2Engine(String host,
int port,
String user,
String password)
Creates a new instance of Dsmlv2Engine.
|
Modifier and Type | Method and Description |
---|---|
String |
processDSML(InputStream inputStream,
String inputEncoding)
Processes the file given and return the result of the operations
|
String |
processDSML(String dsmlInput)
Processes the file given and return the result of the operations
|
String |
processDSMLFile(String fileName)
Processes the file given and return the result of the operations
|
public String processDSML(String dsmlInput) throws org.xmlpull.v1.XmlPullParserException
dsmlInput
- the DSMLv2 formatted request inputorg.xmlpull.v1.XmlPullParserException
- if an error occurs in the parserpublic String processDSMLFile(String fileName) throws org.xmlpull.v1.XmlPullParserException, FileNotFoundException
fileName
- the path to the fileorg.xmlpull.v1.XmlPullParserException
- if an error occurs in the parserFileNotFoundException
- if the file does not existpublic String processDSML(InputStream inputStream, String inputEncoding) throws org.xmlpull.v1.XmlPullParserException
inputStream
- contains a raw byte input stream of possibly unknown encoding (when inputEncoding is null).inputEncoding
- if not null it MUST be used as encoding for inputStreamorg.xmlpull.v1.XmlPullParserException
- if an error occurs in the parserCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.