public final class DefaultBankfileProvider extends AbstractPropertiesBankfileProvider
BankfileProvider
implementation backed by a property file.BankfileBankleitzahlenVerzeichnis
Constructor and Description |
---|
DefaultBankfileProvider()
Standard implementation constructor
org.jdtaus.banking.ri.blzdirectory.DefaultBankfileProvider . |
DefaultBankfileProvider(ClassLoader classLoader,
String classpathLocation,
String propertiesResourceName)
Creates a new
ClasspathBankfileProvider instance taking a class loader to search for resources,
a location resources are searched at and the name of the properties resource backing the instance. |
Modifier and Type | Method and Description |
---|---|
URL |
getBankfile(int index)
Gets a bankfile resource.
|
ClassLoader |
getClassLoader()
Gets the class loader searched for resources.
|
String |
getClasspathLocation()
Gets the classpath location searched for resources.
|
Properties |
getProperties()
Gets the properties backing the instance.
|
String |
getPropertiesResourceName()
Gets the name of the properties resource backing the instance.
|
getBankfileCount, getBankfileLocation, getDateOfExpiration, getDateOfValidity, getFormat, getLastModifiedMillis, setProperties
public DefaultBankfileProvider()
org.jdtaus.banking.ri.blzdirectory.DefaultBankfileProvider
.public DefaultBankfileProvider(ClassLoader classLoader, String classpathLocation, String propertiesResourceName)
ClasspathBankfileProvider
instance taking a class loader to search for resources,
a location resources are searched at and the name of the properties resource backing the instance.classLoader
- Class loader to search for resources or null
.classpathLocation
- Location to search resources at or null
.propertiesResourceName
- Name of the properties resource backing the instance or null
.public URL getBankfile(int index) throws IOException
BankfileProvider
index
- The index of the bankfile resource to get.index
.IOException
- if getting the bankfile resource fails.public ClassLoader getClassLoader()
This method returns either the current thread's context class loader or this classes class loader, if the current thread has no context class loader set. A custom class loader can be specified by using one of the constructors taking a class loader.
public String getClasspathLocation()
public Properties getProperties() throws IOException
getProperties
in class AbstractPropertiesBankfileProvider
IOException
- if loading the properties fails.public String getPropertiesResourceName()
Copyright © 2005–2014 jDTAUS. All rights reserved.