static class MondrianPropertiesBase.FilePropertySource extends Object implements MondrianPropertiesBase.PropertySource
MondrianPropertiesBase.PropertySource which reads from a
File.| Constructor and Description |
|---|
FilePropertySource(File file) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns the description of this source, such as a filename or URL.
|
boolean |
isStale()
Returns true if the source exists and has been modified since last
time we called
MondrianPropertiesBase.PropertySource.openStream(). |
InputStream |
openStream()
Opens an input stream from the source.
|
FilePropertySource(File file)
public InputStream openStream()
MondrianPropertiesBase.PropertySourceAlso checks the 'last modified' time, which will determine whether
MondrianPropertiesBase.PropertySource.isStale() returns true.
openStream in interface MondrianPropertiesBase.PropertySourcepublic boolean isStale()
MondrianPropertiesBase.PropertySourceMondrianPropertiesBase.PropertySource.openStream().isStale in interface MondrianPropertiesBase.PropertySourcepublic String getDescription()
MondrianPropertiesBase.PropertySourcegetDescription in interface MondrianPropertiesBase.PropertySource