net.sf.ofx4j.io.nanoxml
Class NanoXMLOFXReader

java.lang.Object
  extended by net.sf.ofx4j.io.BaseOFXReader
      extended by net.sf.ofx4j.io.nanoxml.NanoXMLOFXReader
All Implemented Interfaces:
OFXReader

public class NanoXMLOFXReader
extends BaseOFXReader

OFX reader using the NanoXML library.

Much of this code was yanked (with gratitude) from the NanoXML project, written by Marc De Scheemaecker.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from class net.sf.ofx4j.io.BaseOFXReader
OFX_2_PROCESSING_INSTRUCTION_PATTERN
 
Constructor Summary
NanoXMLOFXReader()
           
 
Method Summary
protected  void parseV1FromFirstElement(java.io.Reader reader)
          Parse an OFX version 1 stream from the first OFX element (defined by the first element characters).
protected  java.lang.String processOFXTag(net.n3.nanoxml.IXMLReader reader, net.n3.nanoxml.IXMLEntityResolver entityResolver)
          Processes an OFX tag (aggregate or element).
protected  java.lang.String readCharacters(java.io.Reader contentReader)
           
protected  java.lang.String readTagName(net.n3.nanoxml.IXMLReader reader)
           
 
Methods inherited from class net.sf.ofx4j.io.BaseOFXReader
getContentHandler, getFirstElementStart, parse, parse, parseV2FromFirstElement, processOFXv1Headers, processOFXv2Headers, setContentHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NanoXMLOFXReader

public NanoXMLOFXReader()
Method Detail

parseV1FromFirstElement

protected void parseV1FromFirstElement(java.io.Reader reader)
                                throws java.io.IOException,
                                       OFXParseException
Description copied from class: BaseOFXReader
Parse an OFX version 1 stream from the first OFX element (defined by the first element characters).

Specified by:
parseV1FromFirstElement in class BaseOFXReader
Parameters:
reader - The reader.
Throws:
java.io.IOException
OFXParseException

processOFXTag

protected java.lang.String processOFXTag(net.n3.nanoxml.IXMLReader reader,
                                         net.n3.nanoxml.IXMLEntityResolver entityResolver)
                                  throws java.io.IOException,
                                         net.n3.nanoxml.XMLParseException,
                                         OFXParseException
Processes an OFX tag (aggregate or element).

Parameters:
reader - The reader.
entityResolver - The entity resolver.
Returns:
the name of the end tag that finished the processing.
Throws:
java.io.IOException
net.n3.nanoxml.XMLParseException
OFXParseException

readTagName

protected java.lang.String readTagName(net.n3.nanoxml.IXMLReader reader)
                                throws java.io.IOException,
                                       net.n3.nanoxml.XMLParseException
Throws:
java.io.IOException
net.n3.nanoxml.XMLParseException

readCharacters

protected java.lang.String readCharacters(java.io.Reader contentReader)
                                   throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008. All Rights Reserved.