Package org.apache.tika.detect
Class AutoDetectReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.BufferedReader
-
- org.apache.tika.detect.AutoDetectReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
public class AutoDetectReader extends java.io.BufferedReader
An input stream reader that automatically detects the character encoding to be used for converting bytes to characters.- Since:
- Apache Tika 1.2
-
-
Constructor Summary
Constructors Constructor Description AutoDetectReader(java.io.InputStream stream)
AutoDetectReader(java.io.InputStream stream, Metadata metadata)
AutoDetectReader(java.io.InputStream stream, Metadata metadata, ServiceLoader loader)
AutoDetectReader(java.io.InputStream stream, Metadata metadata, EncodingDetector encodingDetector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.InputSource
asInputSource()
java.nio.charset.Charset
getCharset()
-
-
-
Constructor Detail
-
AutoDetectReader
public AutoDetectReader(java.io.InputStream stream, Metadata metadata, EncodingDetector encodingDetector) throws java.io.IOException, TikaException
- Throws:
java.io.IOException
TikaException
-
AutoDetectReader
public AutoDetectReader(java.io.InputStream stream, Metadata metadata, ServiceLoader loader) throws java.io.IOException, TikaException
- Throws:
java.io.IOException
TikaException
-
AutoDetectReader
public AutoDetectReader(java.io.InputStream stream, Metadata metadata) throws java.io.IOException, TikaException
- Throws:
java.io.IOException
TikaException
-
AutoDetectReader
public AutoDetectReader(java.io.InputStream stream) throws java.io.IOException, TikaException
- Throws:
java.io.IOException
TikaException
-
-