public class TransactionFilePreprocessor extends Object implements FilePreProcessor
Constructor and Description |
---|
TransactionFilePreprocessor() |
TransactionFilePreprocessor(int rowsToSkip) |
TransactionFilePreprocessor(int rowsToSkip,
Long accountId) |
TransactionFilePreprocessor(Long accountId) |
Modifier and Type | Method and Description |
---|---|
protected String |
getAccountId(Map<String,String> fieldsMap) |
protected String |
getAmount(Map<String,String> fieldsMap) |
protected String |
getCheckNum(Map<String,String> fieldsMap) |
protected String |
getDate(Map<String,String> fieldsMap) |
protected String |
getDesription(Map<String,String> fieldsMap) |
double |
getDouble(String nextValue)
Helper function to remove all but numbers and periods
|
protected String |
getMemo(Map<String,String> fieldsMap) |
protected String |
getPayee(Map<String,String> fieldsMap) |
int |
getRowsToSkip() |
List<String> |
processHeaderRow(String separator,
String line) |
Map<String,String> |
processRow(Map<String,String> fieldsMap)
// "DATE","AMOUNT","DESCRIPTION","CHECK_NUM","MEMO","PAYEE"
|
public TransactionFilePreprocessor()
public TransactionFilePreprocessor(int rowsToSkip)
public TransactionFilePreprocessor(Long accountId)
public TransactionFilePreprocessor(int rowsToSkip, Long accountId)
public int getRowsToSkip()
getRowsToSkip
in interface FilePreProcessor
public List<String> processHeaderRow(String separator, String line) throws IOException
processHeaderRow
in interface FilePreProcessor
IOException
public Map<String,String> processRow(Map<String,String> fieldsMap) throws ClearcheckbookException
FilePreProcessor
processRow
in interface FilePreProcessor
ClearcheckbookException
protected String getDate(Map<String,String> fieldsMap) throws ClearcheckbookException
ClearcheckbookException
public double getDouble(String nextValue)
nextValue
- Copyright © 2014 Leonard UK Ltd. All rights reserved.