Class SaxNgFilter
- java.lang.Object
-
- org.smooks.engine.delivery.AbstractFilter
-
- org.smooks.engine.delivery.sax.ng.SaxNgFilter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Filter
public class SaxNgFilter extends AbstractFilter
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
closeResult
protected boolean
closeSource
protected ExecutionContext
executionContext
protected SaxNgParser
parser
-
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 SaxNgFilter(ExecutionContext executionContext, DocumentBuilder documentBuilder, boolean closeSource, boolean closeResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
doFilter()
protected void
doFilter(Source source, Result result)
-
Methods inherited from class org.smooks.engine.delivery.AbstractFilter
close, close, getReader, getWriter, setFilterType
-
-
-
-
Field Detail
-
executionContext
protected final ExecutionContext executionContext
-
closeSource
protected final boolean closeSource
-
closeResult
protected final boolean closeResult
-
parser
protected final SaxNgParser parser
-
-
Constructor Detail
-
SaxNgFilter
public SaxNgFilter(ExecutionContext executionContext, DocumentBuilder documentBuilder, boolean closeSource, boolean closeResult)
-
-
Method Detail
-
doFilter
public void doFilter() throws SmooksException
Description copied from interface:Filter
Filter the content in the suppliedSource
instance, outputing the result to the suppliedResult
instance. Implementations use static methods on theFilterSource
andFilterResult
classes to access theSource
andResults
objects.- Throws:
SmooksException
- Failed to filter.
-
close
public void close()
-
-