public class SmooksSAXFilter extends Filter
Filter.StreamFilterType
CLOSE_RESULT, CLOSE_SOURCE, DEFAULT_SERIALIZATION_ON, ENTITIES_REWRITE, MAINTAIN_ELEMENT_STACK, READER_POOL_SIZE, REVERSE_VISIT_ORDER_ON_VISIT_AFTER, STREAM_FILTER_TYPE, TERMINATE_ON_VISITOR_EXCEPTION
Constructor and Description |
---|
SmooksSAXFilter(ExecutionContext executionContext) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleanup the Filter.
|
void |
doFilter()
|
protected void |
doFilter(Source source,
Result result) |
close, close, getCurrentExecutionContext, getFilter, getReader, getWriter, removeCurrentExecutionContext, removeCurrentFilter, setCurrentExecutionContext, setFilter, setFilterType, setFilterType
public SmooksSAXFilter(ExecutionContext executionContext)
public void doFilter() throws SmooksException
Filter
Source
instance, outputing the result
to the supplied Result
instance.
Implementations use static methods on the FilterSource
and FilterResult
classes
to access the Source
and Results
objects.doFilter
in class Filter
SmooksException
- Failed to filter.Copyright © 2020. All rights reserved.