public abstract class ConfigSourceJ
extends java.lang.Object
Constructor and Description |
---|
ConfigSourceJ() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canBeOpened()
Tests whether this source can be opened [again].
|
abstract long |
lastModifiedTime()
Provides the timestamp so that source file changes can be observed.
|
abstract java.lang.String |
name()
The file name or similar that identifies the underlying resource.
|
java.io.InputStream |
open()
Gets the input stream from this source.
|
protected abstract java.io.InputStream |
openTheSource()
Implementations must provide the means to open their input stream in the necessary way.
|
int |
timesOpened()
Gets the number of times this source has been opened.
|
public abstract long lastModifiedTime()
public abstract boolean canBeOpened()
public final java.io.InputStream open() throws java.io.FileNotFoundException
java.io.FileNotFoundException
protected abstract java.io.InputStream openTheSource() throws java.io.FileNotFoundException
java.io.FileNotFoundException
public abstract java.lang.String name()
public final int timesOpened()