|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.dsmlv2.Dsmlv2ResponseParser
public class Dsmlv2ResponseParser
This class represents the DSMLv2 Parser. It can be used to parse a DSMLv2 Response input.
Constructor Summary | |
---|---|
Dsmlv2ResponseParser()
Creates a new instance of Dsmlv2ResponseParser. |
Method Summary | |
---|---|
BatchResponse |
getBatchResponse()
Gets the Batch Response or null if the it has not been parsed yet |
LdapResponseCodec |
getNextResponse()
Returns the next Request or null if there's no more request |
void |
parse()
Launches the parsing on the input |
void |
parseAllResponses()
Parses all the responses |
void |
parseBatchResponse()
Launches the parsing of the Batch Response only |
void |
setInput(java.io.InputStream inputStream,
java.lang.String inputEncoding)
Sets the input stream the parser is going to process |
void |
setInput(java.lang.String str)
Sets the input string the parser is going to parse |
void |
setInputFile(java.lang.String fileName)
Sets the input file the parser is going to parse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dsmlv2ResponseParser() throws org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParserException
- if an error occurs while the initialization of the parserMethod Detail |
---|
public void setInput(java.lang.String str) throws java.io.FileNotFoundException, org.xmlpull.v1.XmlPullParserException
str
- the string the parser is going to parse
org.xmlpull.v1.XmlPullParserException
- if an error occurs in the parser
java.io.FileNotFoundException
public void setInputFile(java.lang.String fileName) throws java.io.FileNotFoundException, org.xmlpull.v1.XmlPullParserException
fileName
- the name of the file
java.io.FileNotFoundException
- if the file does not exist
org.xmlpull.v1.XmlPullParserException
- if an error occurs in the parserpublic void setInput(java.io.InputStream inputStream, java.lang.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 inputStream
org.xmlpull.v1.XmlPullParserException
- if an error occurs in the parserpublic void parse() throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
org.xmlpull.v1.XmlPullParserException
- when an unrecoverable error occurs
java.io.IOException
public void parseBatchResponse() throws org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParserException
- if an error occurs in the parserpublic BatchResponse getBatchResponse()
public LdapResponseCodec getNextResponse() throws org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParserException
- when an error occurs during the parsingpublic void parseAllResponses() throws org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParserException
- when an error occurs during the parsing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |