mondrian.olap
Class MondrianProperties.FilePropertySource

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

static class MondrianProperties.FilePropertySource
extends Object
implements MondrianProperties.PropertySource

Implementation of MondrianProperties.PropertySource which reads from a File.

 

Constructor Summary
MondrianProperties.FilePropertySource(File file)
           
 
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.FilePropertySource

MondrianProperties.FilePropertySource(File file)
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