Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.any23.encoding
Class TikaEncodingDetector

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

All Implemented Interfaces:
  EncodingDetector

    public class TikaEncodingDetector

extends Object
implements EncodingDetector

An implementation of `EncodingDetector` based on Apache Tika.

Version:
  $Id: TikaEncodingDetector.html 1233375 2012-01-19 13:45:22Z simonetripodi $
Author:
  Michele Mostarda ( michele.mostarda@gmail.com ), Davide Palmisano ( dpalmisano@gmail.com )

Constructor Summary
`TikaEncodingDetector()`

Method Summary
`String` | `guessEncoding(InputStream is)` Guesses the data encoding.

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 is)
                         throws IOException

  Description copied from interface: `EncodingDetector`
  Guesses the data encoding.

  Specified by:
    `guessEncoding` in interface `EncodingDetector`
  Parameters:
    `is` - the input stream containing the data.
  Returns:
    a string compliant to IANA Charset Specification.
  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.