Interface IDocumentFilter

    • Method Detail

      • acceptDocument

        boolean acceptDocument​(HandlerDoc doc,
                               InputStream input,
                               ParseState parseState)
                        throws ImporterHandlerException
        Whether to accepts a document.
        Parameters:
        doc - the document to evaluate
        input - document content
        parseState - whether the document has been parsed already or not (a parsed document should normally be text-based)
        Returns:
        true if document is accepted
        Throws:
        ImporterHandlerException - problem reading the document