| Modifier and Type | Field and Description |
|---|---|
static FilterChain |
CHAIN
Singleton instance of a
FilterChain that will always contain a single RefreshFilter that won't call the next filter in the chain. |
static RefreshFilter |
LAST_REFRESH
Singleton instance of refresh filter that won't call the next filter in the chain.
|
static RefreshFilter |
REFRESH
Singleton instance of refresh filter that will call the next filter in the chain.
|
| Constructor and Description |
|---|
RefreshFilter()
Creates a new refresh filter.
|
RefreshFilter(boolean lastFilter)
Creates a new refresh filter that will call or not the next filter in the chain according to
the specified argument.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doFilter(@NonNull org.jodconverter.core.office.OfficeContext context,
@NonNull com.sun.star.lang.XComponent document,
@NonNull 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 static final RefreshFilter REFRESH
public static final RefreshFilter LAST_REFRESH
public static final FilterChain CHAIN
FilterChain that will always contain a single RefreshFilter that won't call the next filter in the chain. If a document is just converted
from a format to another format, this chain should be used.public RefreshFilter()
public RefreshFilter(boolean lastFilter)
lastFilter - If true, then the filter won't call the next filter in the chain. If
false, the next filter in the chain, if any, will be applied.public void doFilter(@NonNull org.jodconverter.core.office.OfficeContext context,
@NonNull com.sun.star.lang.XComponent document,
@NonNull FilterChain chain)
throws Exception
FilterdoFilter 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.
Copyright © 2022 - present; JODConverter. All rights reserved.