public class CodeTableHandler extends DefaultHandler
CodeTableHandler is a SAX2 ContentHandler that
builds a data structure to facilitate AnselToUnicode character conversion.DefaultHandler| Modifier and Type | Field and Description |
|---|---|
protected Locator |
locator
Locator object
|
| Constructor and Description |
|---|
CodeTableHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
An event fired as characters are consumed.
|
void |
endElement(String uri,
String name,
String qName)
An event fired at the end of parsing an element.
|
HashMap<Integer,HashMap<Integer,Character>> |
getCharSets()
Gets the character sets hashtable.
|
HashMap<Integer,Vector<Integer>> |
getCombiningChars()
Gets the combining characters.
|
static void |
main(String[] args)
The main class on the CodeTableHandler.
|
void |
setDocumentLocator(Locator locator)
Registers the SAX2
Locator object. |
void |
startElement(String uri,
String name,
String qName,
Attributes atts)
An event fired at the start of an element.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningprotected Locator locator
public HashMap<Integer,HashMap<Integer,Character>> getCharSets()
public HashMap<Integer,Vector<Integer>> getCombiningChars()
public void setDocumentLocator(Locator locator)
Registers the SAX2 Locator object.
setDocumentLocator in interface ContentHandlersetDocumentLocator in class DefaultHandlerlocator - the Locatorobjectpublic void startElement(String uri, String name, String qName, Attributes atts) throws SAXParseException
startElement in interface ContentHandlerstartElement in class DefaultHandleruri - name - qname - atts - SAXParseExceptionpublic void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class DefaultHandlerch - start - length - public void endElement(String uri, String name, String qName) throws SAXParseException
endElement in interface ContentHandlerendElement in class DefaultHandleruri - name - qname - SAXParseExceptionpublic static void main(String[] args)
args - Copyright © 2014 FreeLibrary. All Rights Reserved.