org.apache.any23.encoding
Interface EncodingDetector

All Known Implementing Classes:
TikaEncodingDetector

public interface EncodingDetector

Defines a detector for charset encoding.

Author:
Michele Mostarda ( michele.mostarda@gmail.com )

Method Summary
 String guessEncoding(InputStream input)
          Guesses the data encoding.
 

Method Detail

guessEncoding

String guessEncoding(InputStream input)
                     throws IOException
Guesses the data encoding.

Parameters:
input - the input stream containing the data.
Returns:
a string compliant to IANA Charset Specification.
Throws:
IOException


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