|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemarker.template.InputSource
public class InputSource
Provides an input stream or character stream to be compiled into
a FM-Classic template. Similar in concept to the SAX library's
InputSource
class.
Field Summary | |
---|---|
protected java.lang.String |
encoding
A specific character encoding for the input stream. |
protected java.io.Reader |
reader
A reader from which a template can be compiled. |
protected java.io.InputStream |
stream
An input stream from which a template can be compiled. |
Constructor Summary | |
---|---|
InputSource()
Create an empty InputSource. |
|
InputSource(java.io.InputStream stream)
Create an InputSource with the supplied input stream. |
|
InputSource(java.io.InputStream stream,
java.lang.String encoding)
Create an InputSource with the supplied input stream and character encoding. |
|
InputSource(java.io.Reader reader)
Create an InputSource with the supplied reader. |
Method Summary | |
---|---|
java.lang.String |
getEncoding()
Get the character encoding for the input stream provided by this InputSource. |
java.io.InputStream |
getInputStream()
Get the input stream provided by this InputSource. |
java.io.Reader |
getReader()
Get the reader provided by this InputSource. |
void |
setEncoding(java.lang.String encoding)
Set the character encoding for the input stream provided by this InputSource. |
void |
setInputStream(java.io.InputStream stream)
Set the input stream to be provided by this InputSource. |
void |
setReader(java.io.Reader reader)
Set the reader to be provided by this InputSource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.InputStream stream
protected java.lang.String encoding
protected java.io.Reader reader
Constructor Detail |
---|
public InputSource()
public InputSource(java.io.InputStream stream)
stream
- the input stream to be provided by this InputSourcepublic InputSource(java.io.InputStream stream, java.lang.String encoding)
stream
- the input stream to be provided by this InputSourceencoding
- the character encoding for this input streampublic InputSource(java.io.Reader reader)
reader
- the reader to be provided by this InputSourceMethod Detail |
---|
public java.io.InputStream getInputStream()
public void setInputStream(java.io.InputStream stream)
stream
- the input stream for this InputSourcepublic java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding
- the character encoding for the input sourcepublic java.io.Reader getReader()
public void setReader(java.io.Reader reader)
reader
- the reader for this InputSource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |