public abstract class AbstractFilterChain extends java.lang.Object implements FilterChain
构造器和说明 |
---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
protected java.util.List<Filter> filters
protected int pos
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)
addFilter
在接口中 FilterChain
filter
- 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
FilterChain
doFilter
在接口中 FilterChain
context
- 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()