public class InputParser extends Object implements ErrorHandler
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 ErrorHandlerexception - information on what caused the problemSAXExceptionpublic void error(SAXParseException exception) throws SAXException
error in interface ErrorHandlerexception - information on what caused the problemSAXException - always to halt parsing on errorspublic void fatalError(SAXParseException exception) throws SAXException
fatalError in interface ErrorHandlerexception - information on what caused the problemSAXException - always to halt parsing on errorsCopyright © 2019 WSO2. All rights reserved.