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.PropertySourcewhich reads from aURL.
-
-
Constructor Summary
Constructors Constructor Description UrlPropertySource(URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Returns the description of this source, such as a filename or URL.booleanisStale()Returns true if the source exists and has been modified since last time we calledMondrianPropertiesBase.PropertySource.openStream().InputStreamopenStream()Opens an input stream from the source.
-
-
-
Constructor Detail
-
UrlPropertySource
UrlPropertySource(URL url)
-
-
Method Detail
-
openStream
public InputStream openStream()
Description copied from interface:MondrianPropertiesBase.PropertySourceOpens an input stream from the source.Also checks the 'last modified' time, which will determine whether
MondrianPropertiesBase.PropertySource.isStale()returns true.- Specified by:
openStreamin interfaceMondrianPropertiesBase.PropertySource- Returns:
- input stream
-
isStale
public boolean isStale()
Description copied from interface:MondrianPropertiesBase.PropertySourceReturns true if the source exists and has been modified since last time we calledMondrianPropertiesBase.PropertySource.openStream().- Specified by:
isStalein interfaceMondrianPropertiesBase.PropertySource- Returns:
- whether source has changed since it was last read
-
getDescription
public String getDescription()
Description copied from interface:MondrianPropertiesBase.PropertySourceReturns the description of this source, such as a filename or URL.- Specified by:
getDescriptionin interfaceMondrianPropertiesBase.PropertySource- Returns:
- description of this PropertySource
-
-