Package mondrian.olap
Class MondrianPropertiesBase.UrlPropertySource
- java.lang.Object
-
- mondrian.olap.MondrianPropertiesBase.UrlPropertySource
-
- All Implemented Interfaces:
MondrianPropertiesBase.PropertySource
- Enclosing class:
- MondrianPropertiesBase
static class MondrianPropertiesBase.UrlPropertySource extends Object implements MondrianPropertiesBase.PropertySource
Implementation ofMondrianPropertiesBase.PropertySource
which reads from aURL
.
-
-
Constructor Summary
Constructors Constructor Description UrlPropertySource(URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 calledMondrianPropertiesBase.PropertySource.openStream()
.InputStream
openStream()
Opens an input stream from the source.
-
-
-
Constructor Detail
-
UrlPropertySource
UrlPropertySource(URL url)
-
-
Method Detail
-
openStream
public InputStream openStream()
Description copied from interface:MondrianPropertiesBase.PropertySource
Opens an input stream from the source.Also checks the 'last modified' time, which will determine whether
MondrianPropertiesBase.PropertySource.isStale()
returns true.- Specified by:
openStream
in interfaceMondrianPropertiesBase.PropertySource
- Returns:
- input stream
-
isStale
public boolean isStale()
Description copied from interface:MondrianPropertiesBase.PropertySource
Returns true if the source exists and has been modified since last time we calledMondrianPropertiesBase.PropertySource.openStream()
.- Specified by:
isStale
in interfaceMondrianPropertiesBase.PropertySource
- Returns:
- whether source has changed since it was last read
-
getDescription
public String getDescription()
Description copied from interface:MondrianPropertiesBase.PropertySource
Returns the description of this source, such as a filename or URL.- Specified by:
getDescription
in interfaceMondrianPropertiesBase.PropertySource
- Returns:
- description of this PropertySource
-
-