Package org.apache.any23.encoding

## Class TikaEncodingDetector

- java.lang.Object
- - org.apache.any23.encoding.TikaEncodingDetector

- All Implemented Interfaces:
    `org.apache.any23.encoding.EncodingDetector`

      public class TikaEncodingDetector
      extends Object
      implements org.apache.any23.encoding.EncodingDetector

  An implementation of `EncodingDetector` based on Apache Tika.
  Version:
    $Id$
  Author:
    Michele Mostarda ( michele.mostarda@gmail.com ), Davide Palmisano ( dpalmisano@gmail.com ), Hans Brende (hansbrende@apache.org)

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `TikaEncodingDetector()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `guessEncoding​(InputStream input)` |
    `String` | `guessEncoding​(InputStream is, String contentType)` |

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

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

- - ### Constructor Detail

    - #### TikaEncodingDetector

          public TikaEncodingDetector()

  - ### Method Detail

    - #### guessEncoding

          public String guessEncoding​(InputStream input)
                               throws IOException

      Specified by:
        `guessEncoding` in interface `org.apache.any23.encoding.EncodingDetector`
      Throws:
        `IOException`

    - #### guessEncoding

          public String guessEncoding​(InputStream is,
                                      String contentType)
                               throws IOException

      Specified by:
        `guessEncoding` in interface `org.apache.any23.encoding.EncodingDetector`
      Throws:
        `IOException`