|
EchoPoint 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopoint.template.AbstractDataSource
echopoint.template.FileDataSource
A FileDataSource implements a DataSource
for a file.
| Field Summary | |
protected java.lang.String |
canonicalName
|
| Fields inherited from class echopoint.template.AbstractDataSource |
DEFAULT_ENCODING |
| Constructor Summary | |
FileDataSource(java.io.File f)
Constructs a FileDataSource with the specified file |
|
FileDataSource(java.io.File f,
java.lang.String encoding)
Constructs a FileDataSource with the specified file |
|
| Method Summary | |
java.lang.String |
getCanonicalName()
Returns a canonical name of this DataSource. |
java.io.Reader |
getInputReader()
Gets an Reader of the File. |
long |
lastModified()
Returns the time the content of this File was last modified. |
| Methods inherited from class echopoint.template.AbstractDataSource |
getCharacterEncoding, setCharacterEncoding |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String canonicalName
| Constructor Detail |
public FileDataSource(java.io.File f)
FileDataSource with the specified file
f - - the File to read the data from
Uses the default character encoding of AbstractDataSource.DEFAULT_ENCODING
public FileDataSource(java.io.File f,
java.lang.String encoding)
FileDataSource with the specified file
f - - the File to read the data fromencoding - - the character encoding to use| Method Detail |
public java.lang.String getCanonicalName()
getCanonicalName in interface DataSourcegetCanonicalName in class AbstractDataSource
public java.io.Reader getInputReader()
throws java.io.IOException
getInputReader in interface DataSourcegetInputReader in class AbstractDataSourcejava.io.IOExceptionpublic long lastModified()
The return value is used to decide whether to reparse a Source or not. Reparsing is done if the value returned here differs from the value returned at the last processing time.
lastModified in interface DataSourcelastModified in class AbstractDataSource
|
EchoPoint 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||