Class AbstractDocumentSplitter<T extends BaseDocumentSplitterConfig>

java.lang.Object
com.norconex.importer.handler.splitter.AbstractDocumentSplitter<T>
All Implemented Interfaces:
Configurable<T>, ConfigurableDocHandler<T>, DocHandler
Direct Known Subclasses:
CsvSplitter, DomSplitter, PdfPageSplitter, TranslatorSplitter, XmlStreamSplitter

public abstract class AbstractDocumentSplitter<T extends BaseDocumentSplitterConfig> extends Object implements ConfigurableDocHandler<T>
  • Constructor Details

    • AbstractDocumentSplitter

      public AbstractDocumentSplitter()
  • Method Details

    • handle

      public final boolean handle(DocHandlerContext docCtx) throws IOException
      Description copied from interface: DocHandler
      Perform any operations on a document.
      Specified by:
      handle in interface DocHandler
      Parameters:
      docCtx - the document handling context
      Returns:
      false to stop processing and reject a document or true to proceed to the next configured handler.
      Throws:
      IOException - An I/O exception of some sort has occurred
    • split

      public abstract void split(DocHandlerContext docCtx) throws IOException
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object