modnlp.tec.client
public class HeaderXMLHandler extends org.xml.sax.helpers.DefaultHandler
Constructor and Description |
---|
HeaderXMLHandler() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String name) |
void |
error(org.xml.sax.SAXParseException exception)
Report all recoverable errors, and try to continue parsing.
|
void |
fatalError(org.xml.sax.SAXParseException exception)
Report all fatal errors, and try to continue parsing.
|
java.lang.StringBuffer |
getContent() |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Print a message for ignorable whitespace.
|
void |
parse(java.io.InputStream is) |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes atts) |
void |
warning(org.xml.sax.SAXParseException exception)
Report all warnings, and continue parsing.
|
public HeaderXMLHandler() throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public void parse(java.io.InputStream is) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes atts)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String name)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
public void ignorableWhitespace(char[] ch, int start, int length)
ignorableWhitespace
in interface org.xml.sax.ContentHandler
ignorableWhitespace
in class org.xml.sax.helpers.DefaultHandler
DocumentHandler.ignorableWhitespace(char[], int, int)
public void warning(org.xml.sax.SAXParseException exception)
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
ErrorHandler.warning(org.xml.sax.SAXParseException)
public void error(org.xml.sax.SAXParseException exception)
error
in interface org.xml.sax.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
ErrorHandler.error(org.xml.sax.SAXParseException)
public void fatalError(org.xml.sax.SAXParseException exception)
Note: results are no longer reliable once a fatal error has been reported.
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
ErrorHandler.fatalError(org.xml.sax.SAXParseException)
public java.lang.StringBuffer getContent()