xml.fixJJL
Class FixDataHandler

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

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

FixDataHandler is a that can parse CBOE file saved from Exel


Constructor Summary
FixDataHandler()
           
 
Method Summary
 void addCboeRec()
           
 void characters(char[] buf, int offset, int len)
          when characters are found, we add them to the string vector for latter use.
 void endElement(java.lang.String s1, java.lang.String s2, java.lang.String name)
           
 Cboe getCboe()
           
 java.lang.String getLastValue()
           
 void ignorableWhitespace(char[] buf, int offset, int len)
           
 void incDataField()
           
 void incRowNum()
          When we get the tag, then we want to invoke addProduct otherwise, just return:
static void main(java.lang.String[] args)
          when characters are found, we add them to the string vector for latter use.
 java.lang.String popLastValue()
           
 void processingInstruction(java.lang.String target, java.lang.String data)
          The processingInstruction is called back when a non XML declaration is made.
 void startElement()
          The Locator instance must be used locally to identify the origin of a SAX event.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, notationDecl, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixDataHandler

public FixDataHandler()
Method Detail

getCboe

public Cboe getCboe()

startElement

public void startElement()
The Locator instance must be used locally to identify the origin of a SAX event.


incRowNum

public void incRowNum()
When we get the tag, then we want to invoke addProduct otherwise, just return:


incDataField

public void incDataField()

addCboeRec

public void addCboeRec()

characters

public void characters(char[] buf,
                       int offset,
                       int len)
when characters are found, we add them to the string vector for latter use.

Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler

ignorableWhitespace

public void ignorableWhitespace(char[] buf,
                                int offset,
                                int len)
Specified by:
ignorableWhitespace in interface org.xml.sax.ContentHandler
Overrides:
ignorableWhitespace in class org.xml.sax.helpers.DefaultHandler

processingInstruction

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
The processingInstruction is called back when a non XML declaration is made.

Specified by:
processingInstruction in interface org.xml.sax.ContentHandler
Overrides:
processingInstruction in class org.xml.sax.helpers.DefaultHandler

popLastValue

public java.lang.String popLastValue()

getLastValue

public java.lang.String getLastValue()

endElement

public void endElement(java.lang.String s1,
                       java.lang.String s2,
                       java.lang.String name)
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

main

public static void main(java.lang.String[] args)
when characters are found, we add them to the string vector for latter use.