|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopointng.template.AbstractTemplateDataSource
echopointng.template.FileTemplateDataSource
public class FileTemplateDataSource
FileTemplateDataSource takes it template
data from a File.
| Field Summary |
|---|
| Fields inherited from class echopointng.template.AbstractTemplateDataSource |
|---|
DEFAULT_ACCESS_TIMEOUT, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_TIME_TO_LIVE |
| Constructor Summary | |
|---|---|
FileTemplateDataSource()
Constructs a FileTemplateDataSource with no
template file. |
|
FileTemplateDataSource(java.io.File file)
Constructs a FileTemplateDataSource with the
specified File object as the template source |
|
FileTemplateDataSource(java.lang.String fileName)
Constructs a FileTemplateDataSource using the
specified fileName as the template data source. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCanonicalName()
Returns a canonical name of this TemplateDataSource. |
java.io.File |
getFile()
|
java.io.InputStream |
getInputStream()
Gets an InputStream of this TemplateDataSource. |
void |
setFile(java.io.File file)
|
| Methods inherited from class echopointng.template.AbstractTemplateDataSource |
|---|
getCachingHints, getCharacterEncoding, getContentType, setCachingHints, setCharacterEncoding, setContentType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileTemplateDataSource()
FileTemplateDataSource with no
template file.
public FileTemplateDataSource(java.lang.String fileName)
FileTemplateDataSource using the
specified fileName as the template data source.
fileName - - the file name to readpublic FileTemplateDataSource(java.io.File file)
FileTemplateDataSource with the
specified File object as the template source
file - - the File to use| Method Detail |
|---|
public java.lang.String getCanonicalName()
TemplateDataSourceTemplateDataSource.
The name returned here is used to look up the parsing
result of the internal caching, so it should differ
for all different TemplateDataSource objects :-)
May return null if this TemplateDataSource is supposed
to be parsed each time. The canonical name would be something
like a filename or an URL.
TemplateDataSourceTemplateDataSource.getCanonicalName()
public java.io.InputStream getInputStream()
throws java.io.IOException
TemplateDataSourceInputStream of this TemplateDataSource.
Note that this method may be called multiple times
in the life of the TemplateDataSource. So you probably have to implement a
buffer if your underlying data source is transient ..
java.io.IOExceptionTemplateDataSource.getInputStream()public java.io.File getFile()
public void setFile(java.io.File file)
file - The file to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||