net.sf.ofx4j.io.nanoxml
Class NanoXMLOFXReader
java.lang.Object
net.sf.ofx4j.io.BaseOFXReader
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NanoXMLOFXReader
public NanoXMLOFXReader()
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.