Package eu.europa.ec.taxud.cesop.readers
Interface IPspXmlReader
-
- All Superinterfaces:
AutoCloseable
,Iterator<XmlPaymentDataMsgPart>
- All Known Implementing Classes:
PspXmlReader
public interface IPspXmlReader extends Iterator<XmlPaymentDataMsgPart>, AutoCloseable
Iterative reader of Payment Service Provider xml files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getEstimatedContentSize()
Gets estimated content size.XmlMessageSpec
getXmlMessageSpec()
Returns parsed MessageSpec part.XmlPsp
getXmlReportingPsp()
Returns parsed MessageSpec part.XmlPaymentDataMsgPart
next()
Parse the next part of payment data.-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, remove
-
-
-
-
Method Detail
-
getXmlMessageSpec
XmlMessageSpec getXmlMessageSpec()
Returns parsed MessageSpec part. Available at any point of iteration.- Returns:
- the xml message spec
-
getXmlReportingPsp
XmlPsp getXmlReportingPsp()
Returns parsed MessageSpec part. Available at any point of iteration.- Returns:
- the xml reporting psp
-
next
XmlPaymentDataMsgPart next()
Parse the next part of payment data. For every payee it first yields one or more parts withPaymentDataMsgPartContentType.REPORTED_TRANSACTIONS
type. Then, after all payee transactions are produced, onePaymentDataMsgPartContentType.REPORTED_PAYEE
part is yielded.- Specified by:
next
in interfaceIterator<XmlPaymentDataMsgPart>
-
getEstimatedContentSize
long getEstimatedContentSize()
Gets estimated content size.- Returns:
- returns content size in bytes if available. If not, returns -1.
-
-