@Deprecated public class MonitorHandler extends DefaultHandler
Constructor and Description |
---|
MonitorHandler(ObjectFactory factory)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Deprecated.
Receive notification of character data inside an element.
|
void |
endDocument()
Deprecated.
|
void |
endElement(String uri,
String localName,
String qName)
Deprecated.
Receive notification of the end of an element.
|
Status |
getContents()
Deprecated.
method returns the status object.
|
int |
parseInt(String data)
Deprecated.
Convienance method for parsing integers.
|
long |
parseLong(String data)
Deprecated.
Convienance method for parsing long.
|
void |
startDocument()
Deprecated.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Deprecated.
Receive notification of the start of an element.
|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
public MonitorHandler(ObjectFactory factory)
factory
- ObjectFactory
to usepublic void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).
startElement
in interface ContentHandler
startElement
in class DefaultHandler
uri
- The namespace uri, or the empty string, if no namespace is availablelocalName
- The element type name.qName
- The qualified name, or the empty string (must not be null
)attributes
- The specified or defaulted attributes.SAXException
- Any SAX exception, possibly wrapping another exception.ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endElement(String uri, String localName, String qName) throws SAXException
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).
endElement
in interface ContentHandler
endElement
in class DefaultHandler
uri
- the namespace uri, or the empty string, if no namespace is availablelocalName
- The element type name.qName
- The specified or defaulted attributes.SAXException
- Any SAX exception, possibly wrapping another exception.ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
public void characters(char[] ch, int start, int length) throws SAXException
By default, do nothing. Application writers may override this method to take specific actions for each chunk of character data (such as adding the data to a node or buffer, or printing it to a file).
characters
in interface ContentHandler
characters
in class DefaultHandler
ch
- The characters.start
- The start position in the character array.length
- The number of characters to use from the character array.SAXException
- Any SAX exception, possibly wrapping another exception.ContentHandler.characters(char[], int, int)
public long parseLong(String data)
data
- string representation of a Long
public int parseInt(String data)
data
- string representation of an Integer
public Status getContents()
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.