org.wdssii.core
Class SAXIndexHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.wdssii.core.SAXIndexHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class SAXIndexHandler
extends DefaultHandler

Author:
lakshman

Nested Class Summary
(package private) static class SAXIndexHandler.ElementHandler
           
 
Field Summary
private  SAXIndexHandler.ElementHandler[] all
           
private  SAXIndexHandler.ElementHandler current
           
private  String frac
           
private  Index index
           
private  SAXIndexHandler.ElementHandler item
           
private  SAXIndexHandler.ElementHandler params
           
private  SAXIndexHandler.ElementHandler selections
           
private  SAXIndexHandler.ElementHandler time
           
 
Constructor Summary
SAXIndexHandler(Index index)
           
 
Method Summary
private  void addRecord()
           
 void characters(char[] buf, int start, int len)
           
 void endElement(String namespaceURI, String localName, String qualifiedName)
           
private  void reinit()
           
 void startElement(String namespaceURI, String localName, String qualifiedName, Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

private Index index

item

private SAXIndexHandler.ElementHandler item

time

private SAXIndexHandler.ElementHandler time

params

private SAXIndexHandler.ElementHandler params

selections

private SAXIndexHandler.ElementHandler selections

all

private SAXIndexHandler.ElementHandler[] all

current

private SAXIndexHandler.ElementHandler current

frac

private String frac
Constructor Detail

SAXIndexHandler

public SAXIndexHandler(Index index)
Method Detail

reinit

private void reinit()

characters

public void characters(char[] buf,
                       int start,
                       int len)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qualifiedName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qualifiedName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

addRecord

private void addRecord()