|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemarker.template.InputSource
freemarker.template.FileInputSource
public class FileInputSource
Provides a file to be compiled into a FM-Classic template.
Field Summary |
---|
Fields inherited from class freemarker.template.InputSource |
---|
encoding, reader, stream |
Constructor Summary | |
---|---|
FileInputSource()
Create an empty FileInputSource. |
|
FileInputSource(java.io.File file)
Create a FileInputSource with the supplied File. |
|
FileInputSource(java.io.File file,
java.lang.String encoding)
Create a FileInputSource with the supplied File and character encoding. |
|
FileInputSource(java.lang.String filename)
Create a FileInputSource with the supplied filename. |
|
FileInputSource(java.lang.String filename,
java.lang.String encoding)
Create a FileInputSource with the supplied filename and character encoding. |
Method Summary | |
---|---|
void |
setFile(java.io.File file)
Set the File to be provided by this FileInputSource. |
void |
setFile(java.io.File file,
java.lang.String encoding)
Set the File to be provided by this FileInputSource. |
void |
setFilename(java.lang.String filename)
Set the filename of the file to be provided by this FileInputSource. |
void |
setFilename(java.lang.String filename,
java.lang.String encoding)
Set the filename of the file to be provided by this FileInputSource. |
Methods inherited from class freemarker.template.InputSource |
---|
getEncoding, getInputStream, getReader, setEncoding, setInputStream, setReader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileInputSource()
public FileInputSource(java.io.File file) throws java.io.FileNotFoundException
file
- the file to be provided by this input source
java.io.FileNotFoundException
- the file could not be foundpublic FileInputSource(java.io.File file, java.lang.String encoding) throws java.io.FileNotFoundException
file
- the file to be provided by this input sourceencoding
- the character encoding for the given file
java.io.FileNotFoundException
- the file could not be foundpublic FileInputSource(java.lang.String filename) throws java.io.FileNotFoundException
filename
- the file to be provided by this input source
java.io.FileNotFoundException
- the file could not be foundpublic FileInputSource(java.lang.String filename, java.lang.String encoding) throws java.io.FileNotFoundException
filename
- the file to be provided by this input sourceencoding
- the character encoding for the given file
java.io.FileNotFoundException
- the file could not be foundMethod Detail |
---|
public void setFile(java.io.File file) throws java.io.FileNotFoundException
file
- the file for this FileInputSource
java.io.FileNotFoundException
- the file could not be foundpublic void setFile(java.io.File file, java.lang.String encoding) throws java.io.FileNotFoundException
file
- the file for this FileInputSourceencoding
- the character encoding for this file
java.io.FileNotFoundException
- the file could not be foundpublic void setFilename(java.lang.String filename) throws java.io.FileNotFoundException
filename
- the file for this FileInputSource
java.io.FileNotFoundException
- the file could not be foundpublic void setFilename(java.lang.String filename, java.lang.String encoding) throws java.io.FileNotFoundException
filename
- the file for this FileInputSourceencoding
- the character encoding for this file
java.io.FileNotFoundException
- the file could not be found
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |