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 contain the specified filters.
|
AbstractFilterChain(Filter... filters)
Creates a FilterChain that will contain the specified filters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(@NonNull Filter filter)
Adds a filter to the chain.
|
protected void |
doFilter(@NonNull Filter filter,
@NonNull org.jodconverter.core.office.OfficeContext context,
@NonNull com.sun.star.lang.XComponent document)
Causes the specified filter to be invoked.
|
void |
doFilter(@NonNull org.jodconverter.core.office.OfficeContext context,
@NonNull 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopypublic 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(@NonNull Filter filter)
FilterChainaddFilter in interface FilterChainfilter - The filter to add at the end of the chain.public void doFilter(@NonNull org.jodconverter.core.office.OfficeContext context,
@NonNull com.sun.star.lang.XComponent document)
throws org.jodconverter.core.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.core.office.OfficeException - If an error occurs processing the filter.protected void doFilter(@NonNull Filter filter, @NonNull org.jodconverter.core.office.OfficeContext context, @NonNull com.sun.star.lang.XComponent document) throws org.jodconverter.core.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.core.office.OfficeException - If an error occurs processing the filter.public void reset()
Copyright © 2016 - present; JODConverter.org. All rights reserved.