Class AbstractDocumentSplitter
- java.lang.Object
-
- com.norconex.importer.handler.AbstractImporterHandler
-
- com.norconex.importer.handler.splitter.AbstractDocumentSplitter
-
- All Implemented Interfaces:
IXMLConfigurable
,IImporterHandler
,IDocumentSplitter
- Direct Known Subclasses:
CsvSplitter
,DOMSplitter
,PDFPageSplitter
,TranslatorSplitter
,XMLStreamSplitter
public abstract class AbstractDocumentSplitter extends AbstractImporterHandler implements IDocumentSplitter
Base class for splitters.
Subclasses inherit this
IXMLConfigurable
configuration:<!-- multiple "restrictTo" tags allowed (only one needs to match) --> <restrictTo> <fieldMatcher>(field-matching expression)</fieldMatcher> <valueMatcher>(value-matching expression)</valueMatcher> </restrictTo>
- Since:
- 2.0.0
- Author:
- Pascal Essiembre
-
-
Constructor Summary
Constructors Constructor Description AbstractDocumentSplitter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract List<Doc>
splitApplicableDocument(HandlerDoc doc, InputStream input, OutputStream output, ParseState parseState)
List<Doc>
splitDocument(HandlerDoc doc, InputStream docInput, OutputStream docOutput, ParseState parseState)
-
Methods inherited from class com.norconex.importer.handler.AbstractImporterHandler
addRestriction, addRestriction, addRestrictions, clearRestrictions, detectCharsetIfBlank, equals, getRestrictions, hashCode, isApplicable, loadFromXML, loadHandlerFromXML, removeRestriction, removeRestriction, saveHandlerToXML, saveToXML, toString
-
-
-
-
Method Detail
-
splitDocument
public final List<Doc> splitDocument(HandlerDoc doc, InputStream docInput, OutputStream docOutput, ParseState parseState) throws ImporterHandlerException
- Specified by:
splitDocument
in interfaceIDocumentSplitter
- Throws:
ImporterHandlerException
-
splitApplicableDocument
protected abstract List<Doc> splitApplicableDocument(HandlerDoc doc, InputStream input, OutputStream output, ParseState parseState) throws ImporterHandlerException
- Throws:
ImporterHandlerException
-
-