Class DefaultParserConfig

All Implemented Interfaces:
Labelable

public class DefaultParserConfig extends BaseDocHandlerConfig
Parser class when no other handlers are specified. The importer uses Apache Tika parser in its own way with default settings common for most senarios. If you want to use and configure Tika yourself, use TikaParser.
  • Constructor Details

    • DefaultParserConfig

      public DefaultParserConfig()
  • Method Details

    • setXmlParserPoolSize

      public DefaultParserConfig setXmlParserPoolSize(Integer size)
    • setPoolSize

      public DefaultParserConfig setPoolSize(int poolSize)
    • getPoolSize

      public int getPoolSize()
      Maximum number of top-level documents this handler parses at once. Zero (the default) sets no limit. All documents share the same Tika parser either way; a limit only makes the extra ones wait.
    • getXmlParserPoolSize

      public Integer getXmlParserPoolSize()
      JVM-wide reusable SAX parser and DOM builder pool size. Null leaves Tika's size as it is (10 by default). Must be positive when specified. The pool being shared by the JVM, the largest size asked for by any handler wins.
    • getErrorsSaveDir

      public Path getErrorsSaveDir()
    • getOcrConfig

      public OcrConfig getOcrConfig()
    • getEmbeddedConfig

      @NonNull public @NonNull EmbeddedConfig getEmbeddedConfig()
    • getGrobidConfig

      public GrobidConfig getGrobidConfig()
    • setErrorsSaveDir

      public DefaultParserConfig setErrorsSaveDir(Path errorsSaveDir)
      Returns:
      this.
    • equals

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

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class BaseLabelableConfig
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseLabelableConfig
    • toString

      public String toString()
      Overrides:
      toString in class BaseLabelableConfig