public class StAXContentHandlerBase extends Object implements StAXContentHandler
StAXContentHandler
interface, with empty implementations for all the methods.
This class is provided as a base for content handlers where the implementor does not wish to provide all the methods.
| Constructor and Description |
|---|
StAXContentHandlerBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Signal a span of character data in the XML input.
|
void |
endElement(String nsURI,
String localName,
String qName,
StAXContentHandler delegate) |
void |
endPrefixMapping(String prefix) |
void |
endTree() |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
skippedEntity(String name) |
void |
startElement(String nsURI,
String localName,
String qName,
Attributes attrs,
DelegationManager dm) |
void |
startPrefixMapping(String prefix,
String uri) |
void |
startTree() |
public StAXContentHandlerBase()
public void startTree() throws SAXException
startTree in interface StAXContentHandlerSAXExceptionpublic void endTree() throws SAXException
endTree in interface StAXContentHandlerSAXExceptionpublic void characters(char[] ch, int start, int length) throws SAXException
characters in interface StAXContentHandlerch - an array of charactersstart - index of the first significant character for this event.length - number of characters significant to this event.SAXExceptionpublic void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace in interface StAXContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface StAXContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface StAXContentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface StAXContentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface StAXContentHandlerpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface StAXContentHandlerSAXExceptionpublic void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException
startElement in interface StAXContentHandlerSAXExceptionpublic void endElement(String nsURI, String localName, String qName, StAXContentHandler delegate) throws SAXException
endElement in interface StAXContentHandlerSAXExceptionCopyright © 2020 BioJava. All rights reserved.