Package org.smooks.engine.delivery
Class AbstractFilter
- java.lang.Object
-
- org.smooks.engine.delivery.AbstractFilter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Filter
- Direct Known Subclasses:
SaxNgFilter
,SmooksDOMFilter
public abstract class AbstractFilter extends Object implements Filter
Content filter.- Author:
- tom.fennelly@gmail.com
-
-
Field Summary
-
Fields inherited from interface org.smooks.api.delivery.Filter
CLOSE_EMPTY_ELEMENTS, CLOSE_RESULT, CLOSE_SOURCE, DEFAULT_SERIALIZATION_ON, ENTITIES_REWRITE, MAINTAIN_ELEMENT_STACK, MAX_NODE_DEPTH, READER_POOL_SIZE, REVERSE_VISIT_ORDER_ON_VISIT_AFTER, STREAM_FILTER_TYPE, TERMINATE_ON_VISITOR_EXCEPTION
-
-
Constructor Summary
Constructors Constructor Description AbstractFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
close(Result result)
protected void
close(Source source)
protected Reader
getReader(Source source, ExecutionContext executionContext)
protected Writer
getWriter(Result result, ExecutionContext executionContext)
static void
setFilterType(Smooks smooks, StreamFilterType filterType)
Set the default stream filter type on the supplied Smooks instance.
-
-
-
Method Detail
-
setFilterType
public static void setFilterType(Smooks smooks, StreamFilterType filterType)
Set the default stream filter type on the supplied Smooks instance.- Parameters:
smooks
- The Smooks instance.filterType
- The filter type.
-
getReader
protected Reader getReader(Source source, ExecutionContext executionContext)
-
getWriter
protected Writer getWriter(Result result, ExecutionContext executionContext)
-
close
protected void close(Source source)
-
close
protected void close(Result result)
-
-