org.apache.tika.detect
Class AutoDetectReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by org.apache.tika.detect.AutoDetectReader
All Implemented Interfaces:
Closeable, Readable

public class AutoDetectReader
extends BufferedReader

An input stream reader that automatically detects the character encoding to be used for converting bytes to characters.

Since:
Apache Tika 1.2

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
AutoDetectReader(InputStream stream)
           
AutoDetectReader(InputStream stream, Metadata metadata)
           
AutoDetectReader(InputStream stream, Metadata metadata, ServiceLoader loader)
           
 
Method Summary
 InputSource asInputSource()
           
 Charset getCharset()
           
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, readLine, ready, reset, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoDetectReader

public AutoDetectReader(InputStream stream,
                        Metadata metadata,
                        ServiceLoader loader)
                 throws IOException,
                        TikaException
Throws:
IOException
TikaException

AutoDetectReader

public AutoDetectReader(InputStream stream,
                        Metadata metadata)
                 throws IOException,
                        TikaException
Throws:
IOException
TikaException

AutoDetectReader

public AutoDetectReader(InputStream stream)
                 throws IOException,
                        TikaException
Throws:
IOException
TikaException
Method Detail

getCharset

public Charset getCharset()

asInputSource

public InputSource asInputSource()


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