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 newAbstractPdfExtractorfor the Santander Bank.SantanderPdfExtractor(InputStream inputStream, String kartenNummer) Erstellt einen PDF-Extraktor der Santander Bank. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddYear(List<PdfEintrag> entries) Adds the year.Liefert den Ausgleichbetrag.protected AbstractBankPDFPageGets the bank even pdf page.protected AbstractBankPDFPageGets the bank first pdf page.protected AbstractBankPDFPageGets 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 intGets the last page.protected NumberFormatGets the number format.protected BigDecimalgetSaldo(AbstractBankPDFPage textAreas) Gets the saldo.protected AbstractTransactionCreatorGets the transaction creator.protected voidremoveAnnotations(List<PdfEintrag> pdfWortList) Removes the annotations.protected voidremoveAnnotationsBookingDates(List<PdfEintrag> buchungenDatum) Removes the annotations booking dates.protected voidreOrder(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 newAbstractPdfExtractorfor 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:
addYearin classAbstractPdfExtractor- Parameters:
entries- the entries- See Also:
-
getBankPdfPageEven
Gets the bank even pdf page.- Specified by:
getBankPdfPageEvenin 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:
getBankPdfPageFirstin 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:
getBankPdfPageOddin classAbstractPdfExtractor- Returns:
- the bank odd pdf page
- Throws:
IOException- Signals that an I/O exception has occurred.- See Also:
-
getBetraege
Gets the betraege.- Overrides:
getBetraegein classAbstractPdfExtractor- Parameters:
textAreas- the text areas- Returns:
- the betraege
- See Also:
-
getFremdwaehrungen
Gets the fremdwaehrungen.- Overrides:
getFremdwaehrungenin classAbstractPdfExtractor- Parameters:
textAreas- the text areas- Returns:
- the fremdwaehrungen
- See Also:
-
getFremdwaehrungsBetraege
Gets the fremdwaehrungs betraege.- Overrides:
getFremdwaehrungsBetraegein classAbstractPdfExtractor- Parameters:
textAreas- the text areas- Returns:
- the fremdwaehrungs betraege
- See Also:
-
getLastPage
Gets the last page.- Specified by:
getLastPagein classAbstractPdfExtractor- Returns:
- the last page
- Throws:
IOException- Signals that an I/O exception has occurred.- See Also:
-
getNumberFormat
Gets the number format.- Specified by:
getNumberFormatin classAbstractPdfExtractor- Returns:
- the number format
- See Also:
-
getSaldo
Gets the saldo.- Overrides:
getSaldoin classAbstractPdfExtractor- Parameters:
textAreas- the text areas- Returns:
- the saldo
- See Also:
-
getTransactionCreator
Gets the transaction creator.- Specified by:
getTransactionCreatorin classAbstractPdfExtractor- Returns:
- the transaction creator
- See Also:
-
removeAnnotations
Removes the annotations.- Specified by:
removeAnnotationsin classAbstractPdfExtractor- Parameters:
pdfWortList- the pdf wort list- See Also:
-
removeAnnotationsBookingDates
Removes the annotations booking dates.- Specified by:
removeAnnotationsBookingDatesin classAbstractPdfExtractor- Parameters:
buchungenDatum- the buchungen datum- See Also:
-
reOrder
Re order.- Specified by:
reOrderin classAbstractPdfExtractor- Parameters:
buchungen- the buchungen- See Also:
-