freemarker.template
Class StringInputSource

java.lang.Object
  extended by freemarker.template.InputSource
      extended by freemarker.template.StringInputSource

public class StringInputSource
extends InputSource

Provides a String to be compiled into a FM-Classic template.

Since:
1.9
Version:
$Id: StringInputSource.java 1153 2005-10-09 08:48:56Z run2000 $

Field Summary
 
Fields inherited from class freemarker.template.InputSource
encoding, reader, stream
 
Constructor Summary
StringInputSource()
          Create an empty StringInputSource.
StringInputSource(java.lang.String source)
          Create a StringInputSource with the supplied String data.
 
Method Summary
 void setString(java.lang.String source)
          Set the String data to be provided by this StringInputSource.
 
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

StringInputSource

public StringInputSource()
Create an empty StringInputSource.


StringInputSource

public StringInputSource(java.lang.String source)
Create a StringInputSource with the supplied String data.

Parameters:
source - the String data for this StringInputSource
Method Detail

setString

public void setString(java.lang.String source)
Set the String data to be provided by this StringInputSource.

Parameters:
source - the String source for this StringInputSource