public class Switcher extends Object implements ContentHandler
| Constructor and Description |
|---|
Switcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Method defining the character data.
|
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName)
Method defining the end of an element.
|
void |
endPrefixMapping(String prefix) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
setElementHandler(String name,
ElementHandler handler)
Method which adds a new handler to the hash table.
|
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
Method defining the start of an element.
|
void |
startPrefixMapping(String prefix,
String uri) |
public void setElementHandler(String name, ElementHandler handler)
name - String representing the name of the TAG to handlehandler - String representing the name of the handler to handle this TAGpublic void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandleruri - String representing the urilocalName - String representing the local nameqName - String representing the qNameatts - Attributes of a specific elementSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandleruri - String representing the urilocalName - String representing the local nameqName - String representing the qNameSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerch - char arraystart - integer where to startlength - integer with the amount of characters to readSAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionCopyright © 2021 B3Partners B.V.. All rights reserved.