构造器和说明 |
---|
TextReplacerFilter(java.lang.String[] searchList,
java.lang.String[] replacementList)
Creates a new filter with the specified strings to replace.
|
限定符和类型 | 方法和说明 |
---|---|
void |
doFilter(org.jodconverter.office.OfficeContext context,
com.sun.star.lang.XComponent document,
FilterChain chain)
The
doFilter method of the Filter is called each time a document is passed through
the chain due to a conversion request. |
public TextReplacerFilter(java.lang.String[] searchList, java.lang.String[] replacementList)
searchList
- The Strings to search for, no-op if null.replacementList
- The Strings to replace them with, no-op if null.public void doFilter(org.jodconverter.office.OfficeContext context, com.sun.star.lang.XComponent document, FilterChain chain) throws org.jodconverter.office.OfficeException
Filter
doFilter
method of the Filter is called each time a document is passed through
the chain due to a conversion request. The FilterChain passed in to this method allows the
Filter to pass on the document to the next entity in the chain.
A typical implementation of this method would either invoke the next filter
in the chain using the FilterChain object (chain.doFilter()
), or
not pass on the document to the next filter in the filter chain to block the conversion
processing.