|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.template.UnparsedTemplateFactory
public final class UnparsedTemplateFactory
A factory class that can create UnparsedTemplate objects for various inputs.
Field Summary | |
---|---|
static UnparsedTemplateFactory |
INSTANCE
The singleton instance of this UnparsedTemplateFactory. |
Method Summary | |
---|---|
UnparsedTemplate |
create(CompileableFactoryParameters params)
Create an instance of a UnparsedTemplate object from the given InputStream, using the named character encoding. |
UnparsedTemplate |
createFromFile(java.io.File file)
Create an instance of a UnparsedTemplate object from the given file, using the platform default character encoding. |
UnparsedTemplate |
createFromFile(java.io.File file,
java.lang.String encoding)
Create an instance of a UnparsedTemplate object from the given file, using the named character encoding. |
UnparsedTemplate |
createFromFile(java.lang.String filePath)
Create an instance of a UnparsedTemplate object from the given file path, using the platform default character encoding. |
UnparsedTemplate |
createFromFile(java.lang.String filePath,
java.lang.String encoding)
Create an instance of a UnparsedTemplate object from the given file, using the named character encoding. |
UnparsedTemplate |
createFromReader(java.io.Reader reader)
Create an instance of a UnparsedTemplate object from the given Reader. |
UnparsedTemplate |
createFromStream(java.io.InputStream stream)
Create an instance of a UnparsedTemplate object from the given InputStream, using the platform default character encoding. |
UnparsedTemplate |
createFromStream(java.io.InputStream stream,
java.lang.String encoding)
Create an instance of a UnparsedTemplate object from the given InputStream, using the named character encoding. |
UnparsedTemplate |
createFromString(java.lang.String str)
Create an instance of a UnparsedTemplate object from the given String. |
java.lang.String |
getName()
Return a name for the compilable object created by this factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final UnparsedTemplateFactory INSTANCE
Method Detail |
---|
public java.lang.String getName()
getName
in interface CompileableFactory<UnparsedTemplate>
public UnparsedTemplate create(CompileableFactoryParameters params) throws java.io.IOException
create
in interface CompileableFactory<UnparsedTemplate>
params
-
java.io.IOException
- there was a problem reading from the input streampublic UnparsedTemplate createFromStream(java.io.InputStream stream) throws java.io.IOException
stream
- the input stream from which the UnparsedTemplate
object will be created
java.io.IOException
- there was a problem reading from the input streampublic UnparsedTemplate createFromStream(java.io.InputStream stream, java.lang.String encoding) throws java.io.IOException
stream
- the input stream from which the UnparsedTemplate
object will be createdencoding
- the character encoding of the input stream
java.io.IOException
- there was a problem reading from the input streampublic UnparsedTemplate createFromFile(java.io.File file) throws java.io.IOException
file
- the file from which the UnparsedTemplate object
will be created
java.io.IOException
- there was a problem reading from the filepublic UnparsedTemplate createFromFile(java.io.File file, java.lang.String encoding) throws java.io.IOException
file
- the file from which the UnparsedTemplate object
will be createdencoding
- the character encoding of the file
java.io.IOException
- there was a problem reading from the filepublic UnparsedTemplate createFromFile(java.lang.String filePath) throws java.io.IOException
filePath
- the file from which the UnparsedTemplate object
will be created
java.io.IOException
- there was a problem reading from the file pathpublic UnparsedTemplate createFromFile(java.lang.String filePath, java.lang.String encoding) throws java.io.IOException
filePath
- the file from which the UnparsedTemplate object
will be createdencoding
- the character encoding of the file
java.io.IOException
- there was a problem reading from the filepublic UnparsedTemplate createFromReader(java.io.Reader reader) throws java.io.IOException
reader
- the reader from which the UnparsedTemplate object
will be created
java.io.IOException
- there was a problem reading from the readerpublic UnparsedTemplate createFromString(java.lang.String str) throws java.io.IOException
str
- the string from which the UnparsedTemplate object
will be created
java.io.IOException
- there was a problem reading from the string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |