public abstract class AbstractDocumentSplitter extends AbstractImporterHandler implements IDocumentSplitter
Base class for splitters.
Subclasses inherit this IXMLConfigurable
configuration:
<restrictTo caseSensitive="[false|true]" field="(name of header/metadata field name to match)"> (regular expression of value to match) </restrictTo> <!-- multiple "restrictTo" tags allowed (only one needs to match) -->
Constructor and Description |
---|
AbstractDocumentSplitter() |
Modifier and Type | Method and Description |
---|---|
protected abstract List<ImporterDocument> |
splitApplicableDocument(SplittableDocument doc,
OutputStream output,
CachedStreamFactory streamFactory,
boolean parsed) |
List<ImporterDocument> |
splitDocument(SplittableDocument doc,
OutputStream docOutput,
CachedStreamFactory streamFactory,
boolean parsed) |
addRestriction, addRestriction, addRestrictions, clearRestrictions, detectCharsetIfBlank, equals, getRestrictions, hashCode, isApplicable, loadFromXML, loadHandlerFromXML, removeRestriction, removeRestriction, saveHandlerToXML, saveToXML, toString
public final List<ImporterDocument> splitDocument(SplittableDocument doc, OutputStream docOutput, CachedStreamFactory streamFactory, boolean parsed) throws ImporterHandlerException
splitDocument
in interface IDocumentSplitter
ImporterHandlerException
protected abstract List<ImporterDocument> splitApplicableDocument(SplittableDocument doc, OutputStream output, CachedStreamFactory streamFactory, boolean parsed) throws ImporterHandlerException
ImporterHandlerException
Copyright © 2009–2021 Norconex Inc.. All rights reserved.