public interface IDocumentFilter extends IImporterHandler
Modifier and Type | Method and Description |
---|---|
boolean |
acceptDocument(String reference,
InputStream document,
ImporterMetadata metadata,
boolean parsed)
Whether to accepts a document.
|
boolean acceptDocument(String reference, InputStream document, ImporterMetadata metadata, boolean parsed) throws ImporterHandlerException
reference
- document referencedocument
- the document to evaluatemetadata
- document metadataparsed
- whether the document has been parsed already or not (a
parsed document should normally be text-based)true
if document is acceptedImporterHandlerException
- problem reading the documentCopyright © 2009–2021 Norconex Inc.. All rights reserved.