Class SantanderPdfExtractor
java.lang.Object
de.frankmuenster.mahoe.pdfextractor.AbstractPdfExtractor
de.frankmuenster.mahoe.banks.santander.pdfextractor.SantanderPdfExtractor
Class for extracting entry information from a Santanter Bank PDF account
statement.
- Author:
- Frank Münster
-
Field Summary
Fields inherited from class de.frankmuenster.mahoe.pdfextractor.AbstractPdfExtractor
buchungsDaten, document, kartenNummer, lastPage, MAX_ONE_WORD, MAX_TWO_WORD, numFormat, rechungsDatum, WORT_DELIMITER, WORT_INFO_LENGTH
-
Constructor Summary
ConstructorsConstructorDescriptionSantanderPdfExtractor
(byte[] byteArray, String cardNumber) Creates a newAbstractPdfExtractor
for the Santander Bank.SantanderPdfExtractor
(InputStream inputStream, String kartenNummer) Erstellt einen PDF-Extraktor der Santander Bank. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addYear
(List<PdfEintrag> entries) Adds the year.Liefert den Ausgleichbetrag.protected AbstractBankPDFPage
Gets the bank even pdf page.protected AbstractBankPDFPage
Gets the bank first pdf page.protected AbstractBankPDFPage
Gets the bank odd pdf page.protected List<PdfEintrag>
getBetraege
(AbstractBankPDFPage textAreas) Gets the betraege.protected List<PdfEintrag>
getFremdwaehrungen
(AbstractBankPDFPage textAreas) Gets the fremdwaehrungen.protected List<PdfEintrag>
getFremdwaehrungsBetraege
(AbstractBankPDFPage textAreas) Gets the fremdwaehrungs betraege.protected int
Gets the last page.protected NumberFormat
Gets the number format.protected BigDecimal
getSaldo
(AbstractBankPDFPage textAreas) Gets the saldo.protected AbstractTransactionCreator
Gets the transaction creator.protected void
removeAnnotations
(List<PdfEintrag> pdfWortList) Removes the annotations.protected void
removeAnnotationsBookingDates
(List<PdfEintrag> buchungenDatum) Removes the annotations booking dates.protected void
reOrder
(List<PdfBuchung> buchungen) Re order.Methods inherited from class de.frankmuenster.mahoe.pdfextractor.AbstractPdfExtractor
close, getBeschreibungen, getBic, getBuchungsDaten, getExtract, getIban, getKarteninhaber, getKartenkonto, getRechungsDatum
-
Constructor Details
-
SantanderPdfExtractor
Creates a newAbstractPdfExtractor
for the Santander Bank.- Parameters:
byteArray
- the account sheet PDF as byte arraycardNumber
- the credit card number- See Also:
-
SantanderPdfExtractor
Erstellt einen PDF-Extraktor der Santander Bank.- Parameters:
inputStream
- the input streamkartenNummer
- the karten nummer- See Also:
-
-
Method Details
-
getAusgleichsBuchung
Liefert den Ausgleichbetrag. Das ist die Differenz zwischen dem Saldo und dem fälligem Betrag.- Returns:
- den Ausgleichbetrag
-
addYear
Adds the year.- Specified by:
addYear
in classAbstractPdfExtractor
- Parameters:
entries
- the entries- See Also:
-
getBankPdfPageEven
Gets the bank even pdf page.- Specified by:
getBankPdfPageEven
in classAbstractPdfExtractor
- Returns:
- the bank even pdf page
- Throws:
IOException
- Signals that an I/O exception has occurred.- See Also:
-
getBankPdfPageFirst
Gets the bank first pdf page.- Specified by:
getBankPdfPageFirst
in classAbstractPdfExtractor
- Returns:
- the bank first pdf page
- Throws:
IOException
- Signals that an I/O exception has occurred.- See Also:
-
getBankPdfPageOdd
Gets the bank odd pdf page.- Specified by:
getBankPdfPageOdd
in classAbstractPdfExtractor
- Returns:
- the bank odd pdf page
- Throws:
IOException
- Signals that an I/O exception has occurred.- See Also:
-
getBetraege
Gets the betraege.- Overrides:
getBetraege
in classAbstractPdfExtractor
- Parameters:
textAreas
- the text areas- Returns:
- the betraege
- See Also:
-
getFremdwaehrungen
Gets the fremdwaehrungen.- Overrides:
getFremdwaehrungen
in classAbstractPdfExtractor
- Parameters:
textAreas
- the text areas- Returns:
- the fremdwaehrungen
- See Also:
-
getFremdwaehrungsBetraege
Gets the fremdwaehrungs betraege.- Overrides:
getFremdwaehrungsBetraege
in classAbstractPdfExtractor
- Parameters:
textAreas
- the text areas- Returns:
- the fremdwaehrungs betraege
- See Also:
-
getLastPage
Gets the last page.- Specified by:
getLastPage
in classAbstractPdfExtractor
- Returns:
- the last page
- Throws:
IOException
- Signals that an I/O exception has occurred.- See Also:
-
getNumberFormat
Gets the number format.- Specified by:
getNumberFormat
in classAbstractPdfExtractor
- Returns:
- the number format
- See Also:
-
getSaldo
Gets the saldo.- Overrides:
getSaldo
in classAbstractPdfExtractor
- Parameters:
textAreas
- the text areas- Returns:
- the saldo
- See Also:
-
getTransactionCreator
Gets the transaction creator.- Specified by:
getTransactionCreator
in classAbstractPdfExtractor
- Returns:
- the transaction creator
- See Also:
-
removeAnnotations
Removes the annotations.- Specified by:
removeAnnotations
in classAbstractPdfExtractor
- Parameters:
pdfWortList
- the pdf wort list- See Also:
-
removeAnnotationsBookingDates
Removes the annotations booking dates.- Specified by:
removeAnnotationsBookingDates
in classAbstractPdfExtractor
- Parameters:
buchungenDatum
- the buchungen datum- See Also:
-
reOrder
Re order.- Specified by:
reOrder
in classAbstractPdfExtractor
- Parameters:
buchungen
- the buchungen- See Also:
-