|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.ext.misc.TransformPipeline
public final class TransformPipeline
A pipeline of transform models that is itself a transform model. Transformations occur in leftmost to rightmost order. Null or empty models are considered equivalent to the null transformation, where data is simply copied from input to output without alteration. Similarly, a pipeline consisting of no transformations is also handled as a null transformation.
Constructor Summary | |
---|---|
TransformPipeline(java.util.List<TemplateModel> transforms)
Create a new transform pipeline with the given transform models. |
Method Summary | |
---|---|
boolean |
isEmpty()
Is there anything in this pipeline. |
java.lang.String |
toString()
Returns a string representation of the object. |
void |
transform(java.io.Reader source,
java.io.Writer target)
Perform the requested transformations on the given data source in the given order. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TransformPipeline(java.util.List<TemplateModel> transforms)
transforms
- an ordered list of TemplateTransformModel and
TemplateTransformModel2 objects to be pipelinedMethod Detail |
---|
public boolean isEmpty() throws TemplateModelException
isEmpty
in interface TemplateModel
true
if the pipeline is empty, otherwise
false
TemplateModelException
public void transform(java.io.Reader source, java.io.Writer target) throws java.io.IOException, TemplateModelException
transform
in interface TemplateTransformModel2
source
- the input data to be transformedtarget
- the data after being fed through all transformations
java.io.IOException
TemplateModelException
public java.lang.String toString()
toString
in class java.lang.Object
String
representation of the object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |