public interface IQBPFileMgr
Implementations of this interface can perform security checks before allowing the file to be opened, and can map files to other storage devices, such as a DBMS or web service. The QBP classes use implementations of this interface to open all configuration files. This provides a flexible means of enforcing security restrictions, and allows the QBP classes to be used in environments where the configuration data is not stored on a traditional file system.
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getReaderFor(java.io.File file_id)
Get an input stream reader for a file identified by a File object.
|
java.io.InputStream |
getReaderFor(java.lang.String data_source)
Get an input stream reader for a file identified by a string value.
|
java.lang.String |
verify(java.io.File data_file)
Check if a File is a valid data source.
|
java.lang.String |
verify(java.lang.String data_source)
Check a data source for validity.
|
java.lang.String verify(java.lang.String data_source)
data_source
- a string identifying the data source to be verified.java.lang.String verify(java.io.File data_file)
data_file
- a file object identifying the data source.java.io.InputStream getReaderFor(java.lang.String data_source) throws java.io.FileNotFoundException, java.lang.IllegalArgumentException, java.lang.Exception
data_source
- the string value identifying the data source.java.io.FileNotFoundException
- if there is no such data source.java.lang.IllegalArgumentException
- if data_source is null, has
an invalid format, or if access is denied for security
reasons.java.lang.Exception
- it may throw a general exception for other errors.java.io.InputStream getReaderFor(java.io.File file_id) throws java.io.FileNotFoundException, java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException, java.lang.Exception
file_id
- the file to be read.java.io.FileNotFoundException
- if there is no such file.java.lang.IllegalArgumentException
- if file_id is null, or if access
is denied for security reasons.java.lang.UnsupportedOperationException
- if reading from files is
not supported.java.lang.Exception
- it may throw a general exception of other errors.