com.leonarduk.clearcheckbook.file.FilePreProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clearcheckbookapi Show documentation
Show all versions of clearcheckbookapi Show documentation
A Java library to access the HTTP developer API for
Clearcheckbook.com, the money management website.
/**
* FilePreProcessor
*
* @author ${author}
* @since 10-Jul-2016
*/
package com.leonarduk.clearcheckbook.file;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import com.leonarduk.clearcheckbook.ClearcheckbookException;
/**
* The Interface FilePreProcessor.
*/
public interface FilePreProcessor {
/**
* Gets the rows to skip.
*
* @return the rows to skip
*/
public abstract int getRowsToSkip();
/**
* Process header row.
*
* @param separator
* the separator
* @param line
* the line
* @return the list
* @throws IOException
* Signals that an I/O exception has occurred.
*/
public List processHeaderRow(String separator, String line) throws IOException;
/**
* // "DATE","AMOUNT","DESCRIPTION","CHECK_NUM","MEMO","PAYEE".
*
* @param fieldsMap
* the fields map
* @return the map
* @throws ClearcheckbookException
* the clearcheckbook exception
*/
public abstract Map processRow(Map fieldsMap)
throws ClearcheckbookException;
}