public interface ChainLink
| Modifier and Type | Method and Description |
|---|---|
boolean |
needTwoPass()
signals that this filter wants to read the AFP before actually
modifying it.
|
boolean |
onStructuredField(Chain chain,
SF sf)
is called for each structured field.
|
boolean needTwoPass()
needTwoPass returns true,
onStructuredField will be first called with chain=null
passing all SF for reading. The second pass actually requires
a commit call on Chain.boolean onStructuredField(Chain chain, SF sf) throws IOException
Chain for each structured field(s) it wants
to be saved. If a filter does not commit the resulting AFP will be
empty.chain - functional interface for committing changes or just passing SFs to the next filtersf - structured fieldIOExceptionCopyright © 2017. All rights reserved.