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.
Constructor and Description |
---|
BankleitzahlenDatei(URL resource)
Reads a Bankleitzahlendatei form an URL initializing the instance to
hold its data.
|
BankleitzahlenDatei(URL resource,
String encoding)
Reads a Bankleitzahlendatei form an URL initializing the instance to
hold its data taking the encoding to use when reading the file.
|
Modifier and Type | Method and Description |
---|---|
String |
getEncoding()
Gets the encoding used for reading bankfile resources.
|
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 BankleitzahlenDatei(URL resource) throws IOException
resource
- an URL to a Bankleitzahlendatei.NullPointerException
- if resource
is null
.PropertyException
- for invalid property values.IllegalArgumentException
- if resource
does not provide
a valid Bankleitzahlendatei.IOException
- if reading fails.public BankleitzahlenDatei(URL resource, String encoding) throws IOException
resource
- an URL to a Bankleitzahlendatei.encoding
- the encoding to use when reading resource
.NullPointerException
- if either resource
or
encoding
is null
.PropertyException
- for invalid property values.IllegalArgumentException
- if resource
does not provide
a valid Bankleitzahlendatei.IOException
- if reading fails.public String getEncoding()
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-2012 jDTAUS. All Rights Reserved.