org.apache.tika.detect
Class AutoDetectReader
java.lang.Object
java.io.Reader
java.io.BufferedReader
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
getCharset
public Charset getCharset()
asInputSource
public InputSource asInputSource()
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.