|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.ctx.InputParser
public class InputParser
A package-private helper that provides a single static routine for parsing input based on the context schema.
Method Summary | |
---|---|
void |
error(SAXParseException exception)
Standard handler routine for the XML parsing. |
void |
fatalError(SAXParseException exception)
Standard handler routine for the XML parsing. |
static Node |
parseInput(InputStream input,
String rootTag)
Tries to Parse the given output as a Context document. |
void |
warning(SAXParseException exception)
Standard handler routine for the XML parsing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Node parseInput(InputStream input, String rootTag) throws ParsingException
input
- the stream to parserootTage
- either "Request" or "Response"
ParsingException
- if a problem occurred parsing the documentpublic void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
exception
- information on what caused the problem
SAXException
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
exception
- information on what caused the problem
SAXException
- always to halt parsing on errorspublic void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
exception
- information on what caused the problem
SAXException
- always to halt parsing on errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |