org.marc4j.util
Class ReverseCodeTableHandler

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--org.marc4j.util.ReverseCodeTableHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class ReverseCodeTableHandler
extends org.xml.sax.helpers.DefaultHandler

ReverseCodeTableHandler is a SAX2 ContentHandler that builds a data structure to facilitate UnicodeToAnsel character conversion.

Version:
$Revision: 1.2 $
Author:
Corey Keith
See Also:
DefaultHandler

Constructor Summary
ReverseCodeTableHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(String uri, String name, String qName)
           
 Hashtable getCharSets()
           
 Vector getCombiningChars()
           
static void main(String[] args)
           
 void setDocumentLocator(Locator locator)
          Registers the SAX2 Locator object.
 void startElement(String uri, String name, String qName, Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReverseCodeTableHandler

public ReverseCodeTableHandler()
Method Detail

getCharSets

public Hashtable getCharSets()

getCombiningChars

public Vector getCombiningChars()

setDocumentLocator

public void setDocumentLocator(Locator locator)

Registers the SAX2 Locator object.

Specified by:
setDocumentLocator in interface ContentHandler
Overrides:
setDocumentLocator in class org.xml.sax.helpers.DefaultHandler
Parameters:
locator - the Locator object

startElement

public void startElement(String uri,
                         String name,
                         String qName,
                         Attributes atts)
                  throws SAXParseException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
SAXParseException

characters

public void characters(char[] ch,
                       int start,
                       int length)
Specified by:
characters in interface ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler

endElement

public void endElement(String uri,
                       String name,
                       String qName)
                throws SAXParseException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
SAXParseException

main

public static void main(String[] args)


Copyright 2001-2003 Bas Peters. All Rights Reserved.