public abstract class AbstractFilterChain extends Object implements FilterChain
| Modifier and Type | Field and Description |
|---|---|
protected List<Filter> |
filters |
protected int |
pos |
| Constructor and Description |
|---|
AbstractFilterChain()
Creates a FilterChain.
|
AbstractFilterChain(boolean readOnly,
Filter... filters)
Creates a FilterChain that will contains the specified filters.
|
AbstractFilterChain(Filter... filters)
Creates a FilterChain that will contains the specified filters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(Filter filter)
Adds a filter to the chain.
|
protected void |
doFilter(Filter filter,
org.jodconverter.office.OfficeContext context,
com.sun.star.lang.XComponent document)
Causes the specified filter to be invoked.
|
void |
doFilter(org.jodconverter.office.OfficeContext context,
com.sun.star.lang.XComponent document)
Causes the next filter in the chain to be invoked, or if the calling filter is the last filter
in the chain, do nothing.
|
void |
reset()
Resets the position in the filter chain to 0, making the chain reusable.
|
public AbstractFilterChain()
public AbstractFilterChain(Filter... filters)
filters - The filters to add to the chain.public AbstractFilterChain(boolean readOnly,
Filter... filters)
readOnly - true If the chain must be read-only (which means that no other filter
can be added to the chain), false otherwise.filters - The filters to initially add to the chain.public void addFilter(Filter filter)
FilterChainaddFilter in interface FilterChainfilter - The filter to add at the end of the chain.public void doFilter(org.jodconverter.office.OfficeContext context,
com.sun.star.lang.XComponent document)
throws org.jodconverter.office.OfficeException
FilterChaindoFilter in interface FilterChaincontext - The OfficeContext in use to pass along the chain.document - The XComponent being converted to pass along the chain.org.jodconverter.office.OfficeException - If an error occurs processing the filter.protected void doFilter(Filter filter, org.jodconverter.office.OfficeContext context, com.sun.star.lang.XComponent document) throws org.jodconverter.office.OfficeException
filter - The filter to execute.context - The context in use to pass along the chain.document - The document being converted to pass along the chain.org.jodconverter.office.OfficeException - If an error occurs processing the filter.public void reset()