Class ScraperCsvConverter
Inheritance
ScraperCsvConverter
Assembly: Subsembly.Scraper.dll
Syntax
public abstract class ScraperCsvConverter : IScraperCsvConverter
Constructors
ScraperCsvConverter(string, string, Encoding)
Declaration
protected ScraperCsvConverter(string sName, string sFileNameSuffix, Encoding aEncoding = null)
Parameters
Properties
FileNameSuffix
Declaration
public string FileNameSuffix { get; }
Property Value
Name
Declaration
public string Name { get; }
Property Value
Methods
Convert(out SepaStatement, byte[], int, int)
Converts a raw, binary CSV data blob that contains account statement data to a CAMT
statement for further processing.
Declaration
public ScraperResult Convert(out SepaStatement aStmt, byte[] vbCsvData, int nOffset, int nLength)
Parameters
Returns
CreateCsv()
Creates a Subsembly.Csv.CsvFile instance, suitable for parsing the CSV format.
Declaration
protected virtual CsvFile CreateCsv()
Returns
DetectEncoding(byte[], int, int)
Tries to detect the correct encoding from the given binary CSV data.
Declaration
protected virtual Encoding DetectEncoding(byte[] vbCsvData, int nOffset, int nLength)
Parameters
Type |
Name |
Description |
byte[] |
vbCsvData |
|
int |
nOffset |
|
int |
nLength |
|
Returns
GetEncoding(byte[])
Declaration
public Encoding GetEncoding(byte[] vbCsvData)
Parameters
Type |
Name |
Description |
byte[] |
vbCsvData |
|
Returns
GetEncoding(byte[], int, int)
Declaration
public Encoding GetEncoding(byte[] vbCsvData, int nOffset, int nLength)
Parameters
Type |
Name |
Description |
byte[] |
vbCsvData |
|
int |
nOffset |
|
int |
nLength |
|
Returns
ReadCsvFinish(SepaStatement)
Finalize reading of the CSV file.
Declaration
protected virtual ScraperResult ReadCsvFinish(SepaStatement aStmt)
Parameters
Returns
Read the header part of the CSV file.
Declaration
protected virtual ScraperResult ReadCsvHeader(SepaStatement aStmt, CsvFile aCsvFile)
Parameters
Type |
Name |
Description |
SepaStatement |
aStmt |
At this time an basically empty SepaStatement. Any useful information
that can be obtained from the CSV header, such as account information or balance
values, can be stored into this.
|
CsvFile |
aCsvFile |
|
Returns
ReadCsvValues(SepaStatement, CsvValues)
Declaration
protected abstract ScraperResult ReadCsvValues(SepaStatement aStmt, CsvValues aCsv)
Parameters
Returns
ResetCsv()
Override this in order to reset any instance data used for the CSV import.
Declaration
protected virtual void ResetCsv()
Implements