org.apache.nutch.parse.tika

## Class TikaParser

- java.lang.Object
- - org.apache.nutch.parse.tika.TikaParser

- All Implemented Interfaces:
    Configurable, Parser, FieldPluggable, Pluggable

      public class TikaParser
      extends java.lang.Object
      implements Parser

  Wrapper for Tika parsers. Mimics the HTMLParser but using the XHTML representation returned by Tika as SAX events

- - ### Field Summary

    - ### Fields inherited from interface org.apache.nutch.parse.Parser

      `X_POINT_ID`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TikaParser()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Configuration` | `getConf()`
    `java.util.Collection<WebPage.Field>` | `getFields()`
    `Parse` | `getParse(java.lang.String url, WebPage page)` This method parses content in WebPage instance
    `org.apache.tika.config.TikaConfig` | `getTikaConfig()`
    `static void` | `main(java.lang.String[] args)`
    `void` | `setConf(Configuration conf)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TikaParser

          public TikaParser()

  - ### Method Detail

    - #### getParse

          public Parse getParse(java.lang.String url,
                                WebPage page)

      Description copied from interface: `Parser`

      This method parses content in WebPage instance

      Specified by:
        `getParse` in interface `Parser`
      Parameters:
        `url` - Page's URL

    - #### setConf

          public void setConf(Configuration conf)

      Specified by:
        `setConf` in interface `Configurable`

    - #### getTikaConfig

          public org.apache.tika.config.TikaConfig getTikaConfig()

    - #### getConf

          public Configuration getConf()

      Specified by:
        `getConf` in interface `Configurable`

    - #### getFields

          public java.util.Collection<WebPage.Field> getFields()

      Specified by:
        `getFields` in interface `FieldPluggable`

    - #### main

          public static void main(java.lang.String[] args)
                           throws java.lang.Exception

      Throws:
        `java.lang.Exception`

Copyright © 2019 The Apache Software Foundation