public abstract class AbstractPropertiesBankfileProvider extends Object implements BankfileProvider
BankfileProvider
implementation backed by a properties file.BankfileBankleitzahlenVerzeichnis
Constructor and Description |
---|
AbstractPropertiesBankfileProvider()
Creates a new
AbstractPropertiesBankfileProvider instance. |
Modifier and Type | Method and Description |
---|---|
int |
getBankfileCount()
Gets the number of provided bankfile resources.
|
String |
getBankfileLocation(int index)
Gets a bankfile resource location.
|
Date |
getDateOfExpiration(int index)
Gets the date of expiration of a bankfile resource.
|
Date |
getDateOfValidity(int index)
Gets the date of validity of a bankfile resource.
|
int |
getFormat(int index)
Gets the format of the bankfile resource.
|
long |
getLastModifiedMillis()
Gets the timestamp this provider was last modified.
|
Properties |
getProperties()
Gets the properties of the instance.
|
void |
setProperties(Properties value)
Sets the properties of the instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBankfile
public AbstractPropertiesBankfileProvider()
AbstractPropertiesBankfileProvider
instance.public final int getBankfileCount() throws IOException
BankfileProvider
getBankfileCount
in interface BankfileProvider
IOException
- if getting the number of provided bankfile resources fails.public String getBankfileLocation(int index) throws IOException
index
- The index of the bankfile resource location to get.index
.IndexOutOfBoundsException
- if index
is negative or greater or equal to the value returned by
method getBankfileCount()
.IOException
- if getting the bankfile resource location fails.public final Date getDateOfExpiration(int index) throws IOException
BankfileProvider
getDateOfExpiration
in interface BankfileProvider
index
- The index of the bankfile resource to get the date of expiration of.index
.IOException
- if getting the date of expiration fails.public final Date getDateOfValidity(int index) throws IOException
BankfileProvider
getDateOfValidity
in interface BankfileProvider
index
- The index of the bankfile resource to get the date of validity of.index
.IOException
- if getting the date of validity fails.public final int getFormat(int index) throws IOException
BankfileProvider
getFormat
in interface BankfileProvider
index
- The index of the bankfile resource to get the format of.IOException
- if getting the format of the bankfile resource fails.BankleitzahlenDatei.JUNE_2006_FORMAT
,
BankleitzahlenDatei.JUNE_2013_FORMAT
public long getLastModifiedMillis() throws IOException
BankfileProvider
getLastModifiedMillis
in interface BankfileProvider
IOException
- if getting the last modification timestamp fails.public Properties getProperties() throws IOException
IOException
- if getting the properties fails.public void setProperties(Properties value)
value
- The new properties of the instance or null
.Copyright © 2005–2014 jDTAUS. All rights reserved.