Constructor and Description |
---|
DocumentInserterFilter(@NonNull File document)
Creates a new filter that will insert the specified document.
|
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 DocumentInserterFilter(@NonNull File document)
document
- The document to insert at the end of the current document.public void doFilter(@NonNull org.jodconverter.core.office.OfficeContext context, @NonNull com.sun.star.lang.XComponent document, @NonNull FilterChain chain) throws Exception
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.
Copyright © 2016 - present; JODConverter.org. All rights reserved.