public final class BankleitzahlenDatei extends Object
For further information see the Merkblatt Bankleitzahlendatei. An updated version of the document may be found at Deutsche Bundesbank.
Modifier and Type | Field and Description |
---|---|
static int |
JUNE_2006_FORMAT
Constant for the format as of june 2006.
|
static int |
JUNE_2013_FORMAT
Constant for the format as of june 2013.
|
Constructor and Description |
---|
BankleitzahlenDatei(URL resource,
int format,
Date dateOfValidity,
Date dateOfExpiration)
Reads a Bankleitzahlendatei form an URL initializing the instance to hold its data taking a format constant.
|
BankleitzahlenDatei(URL resource,
String encoding,
int format,
Date dateOfValidity,
Date dateOfExpiration)
Reads a Bankleitzahlendatei form an URL initializing the instance to hold its data taking the encoding of the
file and a format constant.
|
Modifier and Type | Method and Description |
---|---|
BankleitzahlInfo[] |
getBranchOfficeRecords(Bankleitzahl bankCode)
Gets branch office records for a given bank code.
|
Date |
getDateOfExpiration()
Gets the date of expiration of the file.
|
Date |
getDateOfValidity()
Gets the date of validity of the file.
|
BankleitzahlInfo[] |
getDeletedBranchOfficeRecords(Bankleitzahl bankCode)
Gets deleted branch office records for a given bank code.
|
BankleitzahlInfo |
getDeletedHeadOfficeRecord(Bankleitzahl bankCode)
Gets a deleted head office record for a given bank code.
|
BankleitzahlInfo |
getDeletedRecord(Integer serialNumber)
Gets a deleted record identified by a serial number.
|
BankleitzahlInfo[] |
getDeletedRecords()
Gets all records deleted during updating.
|
String |
getEncoding()
Gets the encoding used for reading bankfile resources.
|
int |
getFormat()
Gets the format of the bankfile backing the instance.
|
BankleitzahlInfo |
getHeadOfficeRecord(Bankleitzahl bankCode)
Gets a head office record for a given bank code.
|
BankleitzahlInfo |
getRecord(Integer serialNumber)
Gets a record identified by a serial number.
|
BankleitzahlInfo[] |
getRecords()
Gets all records held by the instance.
|
void |
update(BankleitzahlenDatei file)
Given a newer version of the Bankleitzahlendatei updates the records of the instance to reflect the changes.
|
public static final int JUNE_2006_FORMAT
public static final int JUNE_2013_FORMAT
public BankleitzahlenDatei(URL resource, int format, Date dateOfValidity, Date dateOfExpiration) throws IOException
resource
- An URL to a Bankleitzahlendatei.format
- The format of the file to parse.dateOfValidity
- The date of validity of the file.dateOfExpiration
- The date of expiration of the file.NullPointerException
- if resource
, dateOfValidity
or dateOfExpiration
is
null
.PropertyException
- for invalid property values.IllegalArgumentException
- if resource
does not provide a valid Bankleitzahlendatei or if
format
does not equal one of the format constants defined in this class.IOException
- if reading fails.JUNE_2006_FORMAT
,
JUNE_2013_FORMAT
public BankleitzahlenDatei(URL resource, String encoding, int format, Date dateOfValidity, Date dateOfExpiration) throws IOException
resource
- An URL to a Bankleitzahlendatei.encoding
- The encoding to use when reading resource
.format
- The format of the file to parse.dateOfValidity
- The date of validity of the file.dateOfExpiration
- The date of expiration of the file.NullPointerException
- if resource
, encoding
, dateOfValidity
or
dateOfExpiration
is null
.PropertyException
- for invalid property values.IllegalArgumentException
- if resource
does not provide a valid Bankleitzahlendatei or if
format
does not equal one of the format constants defined in this class.IOException
- if reading fails.JUNE_2006_FORMAT
,
JUNE_2013_FORMAT
public BankleitzahlInfo[] getBranchOfficeRecords(Bankleitzahl bankCode)
bankCode
- The bank code of the branch office records to return.bankCode
.NullPointerException
- if bankCode
is null
.getRecords()
,
BankleitzahlInfo.isHeadOffice()
public Date getDateOfExpiration()
null
, if the instance got created by using one of the
deprecated constructors.public Date getDateOfValidity()
null
, if the instance got created by using one of the
deprecated constructors.public BankleitzahlInfo[] getDeletedBranchOfficeRecords(Bankleitzahl bankCode)
bankCode
- The bank code of the deleted branch office records to return.bankCode
.NullPointerException
- if bankCode
is null
.getDeletedRecords()
,
BankleitzahlInfo.isHeadOffice()
public BankleitzahlInfo getDeletedHeadOfficeRecord(Bankleitzahl bankCode)
bankCode
- The bank code of the deleted head office record to return.bankCode
or null
, if no such
record is found.NullPointerException
- if bankCode
is null
.getDeletedRecords()
,
BankleitzahlInfo.isHeadOffice()
,
update(org.jdtaus.banking.util.BankleitzahlenDatei)
public BankleitzahlInfo getDeletedRecord(Integer serialNumber)
serialNumber
- The serial number of the deleted record to return.serialNumber
or null
, if no such record is found.NullPointerException
- if serialNumber
is null
.getDeletedRecords()
,
update(org.jdtaus.banking.util.BankleitzahlenDatei)
public BankleitzahlInfo[] getDeletedRecords()
update(org.jdtaus.banking.util.BankleitzahlenDatei)
,
update(org.jdtaus.banking.util.BankleitzahlenDatei)
public String getEncoding()
public int getFormat()
public BankleitzahlInfo getHeadOfficeRecord(Bankleitzahl bankCode)
bankCode
- The bank code of the head office record to return.bankCode
or null
, if no such record is
found.NullPointerException
- if bankCode
is null
.getRecords()
,
BankleitzahlInfo.isHeadOffice()
public BankleitzahlInfo getRecord(Integer serialNumber)
serialNumber
- The serial number of the record to return.serialNumber
or null
, if no record matching
serialNumber
exists in the file.NullPointerException
- if serialNumber
is null
.public BankleitzahlInfo[] getRecords()
public void update(BankleitzahlenDatei file)
file
- A newer version of the Bankleitzahlendatei to use for updating the records of this instance.NullPointerException
- if file
is null
.IllegalArgumentException
- if file
cannot be used for updating this instance.Copyright © 2005–2014 jDTAUS. All rights reserved.