public class TransformFilter extends AbstractFilter implements ErrorListener
Constructor and Description |
---|
TransformFilter()
Creates a new TransformFilter object.
|
TransformFilter(File transform)
Creates a new TransformFilter to apply the given XSLT transform.
|
TransformFilter(File transform,
Map<String,Object> params)
Creates a new TransformFilter to apply the given XSLT transform.
|
TransformFilter(InputStream transform)
Creates a new TransformFilter to apply the given XSLT transform.
|
TransformFilter(InputStream transform,
Map<String,Object> params)
Creates a new TransformFilter to apply the given XSLT transform.
|
TransformFilter(Source transform)
Creates a new TransformFilter to apply the given XSLT transform.
|
TransformFilter(Source transform,
Map<String,Object> params)
Creates a new TransformFilter to apply the given XSLT transform.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyFilter()
Reads data to be transformed from the
filter input stream and
write transformed data to the filter output stream . |
void |
error(TransformerException exception) |
void |
fatalError(TransformerException exception) |
Map<String,Object> |
getParams()
Returns the set of transform parameter bindings.
|
protected Source |
getTransform()
Returns the source for the XSLT transform document.
|
protected void |
initializeFilter(InputStream filterInput,
OutputStream filterOutput)
Initializes the filter.
|
void |
setParams(Map<String,Object> params)
Changes the set of transform parameter bindings.
|
void |
setTransform(Source transform)
Changes the source for the XSLT transform document.
|
String |
toString() |
void |
warning(TransformerException exception) |
close, getFilterInput, getFilterOutput, getSource, getTarget, run, setTarget, setTarget
public TransformFilter()
public TransformFilter(Source transform)
public TransformFilter(InputStream transform)
public TransformFilter(File transform)
public TransformFilter(Source transform, Map<String,Object> params)
public TransformFilter(InputStream transform, Map<String,Object> params)
public void setTransform(Source transform)
protected Source getTransform()
public void setParams(Map<String,Object> params)
protected void initializeFilter(InputStream filterInput, OutputStream filterOutput)
initializeFilter
in class AbstractFilter
protected void applyFilter() throws Exception
filter input stream
and
write transformed data to the filter output stream
.applyFilter
in class AbstractFilter
Exception
public void error(TransformerException exception) throws TransformerException
error
in interface ErrorListener
TransformerException
public void fatalError(TransformerException exception) throws TransformerException
fatalError
in interface ErrorListener
TransformerException
public void warning(TransformerException exception)
warning
in interface ErrorListener
Copyright © 2024 The Cornutum Project. All rights reserved.