public class DocumentFilterChain extends java.lang.Object implements DocumentFilterFactory
DocumentFilterChain
constructs a chain of Document
filters. The filters are constructed from a List
of
DocumentFilterFactories
, and linked
together like pop-beads, each using the previous as its source Document.Constructor and Description |
---|
DocumentFilterChain()
Constructs an empty
DocumentFilterChain . |
DocumentFilterChain(java.util.List<? extends DocumentFilterFactory> factories)
Constructs a
DocumentFilterChain that uses the supplied
List of DocumentFilterFactories
assemble a document filter chain. |
Modifier and Type | Method and Description |
---|---|
Document |
newDocumentFilter(Document source)
Constructs a document procssing pipeline, assembled from filters fetched
from each of the
DocumentFilterFactories
in the list. |
java.lang.String |
toString() |
public DocumentFilterChain()
DocumentFilterChain
. Documents will
will pass through unchanged.public DocumentFilterChain(java.util.List<? extends DocumentFilterFactory> factories)
DocumentFilterChain
that uses the supplied
List of DocumentFilterFactories
assemble a document filter chain.factories
- a List of DocumentFilterFactory
public Document newDocumentFilter(Document source) throws RepositoryException
DocumentFilterFactories
in the list. Returns the head of the chain. The supplied source
Document will be the input for the tail of the chain.newDocumentFilter
in interface DocumentFilterFactory
source
- the input Document
for the filtersRepositoryException
- if there was a problem accessing the sourcepublic java.lang.String toString()
toString
in class java.lang.Object