mondrian.olap
Class MondrianProperties.UrlPropertySource

java.lang.Object
  extended by mondrian.olap.MondrianProperties.UrlPropertySource
All Implemented Interfaces:
MondrianProperties.PropertySource
Enclosing class:
MondrianProperties

static class MondrianProperties.UrlPropertySource
extends Object
implements MondrianProperties.PropertySource

Implementation of MondrianProperties.PropertySource which reads from a URL.


Constructor Summary
MondrianProperties.UrlPropertySource(URL url)
           
 
Method Summary
 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 MondrianProperties.PropertySource.openStream().
 InputStream openStream()
          Opens an input stream from the source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MondrianProperties.UrlPropertySource

MondrianProperties.UrlPropertySource(URL url)
Method Detail

openStream

public InputStream openStream()
Description copied from interface: MondrianProperties.PropertySource
Opens an input stream from the source.

Also checks the 'last modified' time, which will determine whether MondrianProperties.PropertySource.isStale() returns true.

Specified by:
openStream in interface MondrianProperties.PropertySource
Returns:
input stream

isStale

public boolean isStale()
Description copied from interface: MondrianProperties.PropertySource
Returns true if the source exists and has been modified since last time we called MondrianProperties.PropertySource.openStream().

Specified by:
isStale in interface MondrianProperties.PropertySource
Returns:
whether source has changed since it was last read

getDescription

public String getDescription()
Description copied from interface: MondrianProperties.PropertySource
Returns the description of this source, such as a filename or URL.

Specified by:
getDescription in interface MondrianProperties.PropertySource
Returns:
description of this PropertySource

SourceForge.net_Logo