Class OFXDocument
- Namespace
- Tudormobile.QIFLibrary
- Assembly
- Tudormobile.QIFLibrary.dll
Provides mechanism for reading and writing data in Open Financial Exchange Format (OFX).
public class OFXDocument
- Inheritance
-
OFXDocument
- Inherited Members
Fields
CONTENT_TYPE
HTTP COntent Type
public static readonly string CONTENT_TYPE
Field Value
FILE_EXTENSION
Default file extension.
public static readonly string FILE_EXTENSION
Field Value
Properties
Headers
Document headers.
public OFXHeaders Headers { get; }
Property Value
MessageSets
Ordered list of message sets in the document.
public IList<OFXMessageSet> MessageSets { get; }
Property Value
Root
Root element, if it exists.
public OFXProperty Root { get; }
Property Value
Version
OFX Document Version.
public string Version { get; set; }
Property Value
Methods
DefaultHeaders()
Adds default headers, overwriting any existing of the same name.
public OFXDocument DefaultHeaders()
Returns
- OFXDocument
Fluent-reference to this document.
Parse(Stream, bool)
Parses data into a OFX Document.
public static OFXDocument Parse(Stream utf8Stream, bool leaveOpen = true)
Parameters
utf8StreamStreamOFX text to parse.
leaveOpenboolLeave the provided stream open [OPTONAL; Default = true].
Returns
- OFXDocument
An OFXDocument representation of the data.
Parse(string)
Parses data into a OFX Document.
public static OFXDocument Parse(string ofxData)
Parameters
ofxDatastringOFX text to parse.
Returns
- OFXDocument
A OFXDocument representation of the data.
ParseFile(string)
Parses data into a OFX Document.
public static OFXDocument ParseFile(string path)
Parameters
pathstringThe path to the file to be parsed.
Returns
- OFXDocument
An OFXDocument representation of the data.
Save(string)
Save data to a file.
public void Save(string path)
Parameters
pathstringPathname to the file.