| Modifier and Type | Field and Description |
|---|---|
protected Chain |
chain |
protected List<SF> |
sfBuffer |
| Constructor and Description |
|---|
AbstractChainLink() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
commit() |
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.
|
protected abstract boolean |
onStructuredField(SF sf) |
protected boolean |
read(SF sf) |
public boolean needTwoPass()
ChainLinkneedTwoPass 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.needTwoPass in interface ChainLinkpublic final boolean onStructuredField(Chain chain, SF sf) throws IOException
ChainLinkChain for each structured field(s) it wants
to be saved. If a filter does not commit the resulting AFP will be
empty.onStructuredField in interface ChainLinkchain - functional interface for committing changes or just passing SFs to the next filtersf - structured fieldIOExceptionprotected abstract boolean onStructuredField(SF sf) throws IOException
IOExceptionprotected void commit()
throws IOException
IOExceptionprotected boolean read(SF sf)
Copyright © 2017. All rights reserved.