Class TabularTextImporter
java.lang.Object
com.infinitekind.moneydance.model.txtimport.TabularTextImporter
public class TabularTextImporter
extends java.lang.Object
Class that imports transactions from a text file with multiple lines. Handles many delimiters, with a pre-scanning
mode that attempts to detect field delimiters, decimal point characters, field types, and date format.
- Since:
- Moneydance 2017.3 build 1605
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<java.lang.Character>
DEFAULT_DELIMITERS
static java.util.List<java.lang.String>
IMPORTABLE_TEXT_FILE_EXTENSIONS
-
Constructor Summary
Constructors Constructor Description TabularTextImporter(AccountBook book, TabularTextImportSpec importSpec)
-
Method Summary
Modifier and Type Method Description TabularTextImportSpec
getDiscoveredSpec()
Get the import spec that was set using values discovered from running the most recent import.void
performImport(java.io.Reader reader)
Do the import, with the current set of parameters.
-
Field Details
-
IMPORTABLE_TEXT_FILE_EXTENSIONS
public static final java.util.List<java.lang.String> IMPORTABLE_TEXT_FILE_EXTENSIONS -
DEFAULT_DELIMITERS
public static final java.util.List<java.lang.Character> DEFAULT_DELIMITERS
-
-
Constructor Details
-
Method Details
-
getDiscoveredSpec
Get the import spec that was set using values discovered from running the most recent import. The discovered import spec can be used to set default import fields after performing a test import -
performImport
public void performImport(java.io.Reader reader) throws java.lang.ExceptionDo the import, with the current set of parameters.- Throws:
java.lang.Exception
-