Package org.apache.tika.detect
Class AutoDetectReader
java.lang.Object
java.io.Reader
java.io.BufferedReader
org.apache.tika.detect.AutoDetectReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
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
-
Constructor Summary
ConstructorDescriptionAutoDetectReader
(InputStream stream) AutoDetectReader
(InputStream stream, Metadata metadata) AutoDetectReader
(InputStream stream, Metadata metadata, ServiceLoader loader) AutoDetectReader
(InputStream stream, Metadata metadata, EncodingDetector encodingDetector) -
Method Summary
Methods inherited from class java.io.BufferedReader
close, lines, mark, markSupported, read, read, readLine, ready, reset, skip
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Constructor Details
-
AutoDetectReader
public AutoDetectReader(InputStream stream, Metadata metadata, EncodingDetector encodingDetector) throws IOException, TikaException - Throws:
IOException
TikaException
-
AutoDetectReader
public AutoDetectReader(InputStream stream, Metadata metadata, ServiceLoader loader) throws IOException, TikaException - Throws:
IOException
TikaException
-
AutoDetectReader
- Throws:
IOException
TikaException
-
AutoDetectReader
- Throws:
IOException
TikaException
-
-
Method Details
-
getCharset
-
asInputSource
-