Package org.apache.tika.parser.txt
Class UniversalEncodingDetector
- java.lang.Object
-
- org.apache.tika.parser.txt.UniversalEncodingDetector
-
- All Implemented Interfaces:
Serializable,org.apache.tika.detect.EncodingDetector
public class UniversalEncodingDetector extends Object implements org.apache.tika.detect.EncodingDetector
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UniversalEncodingDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Charsetdetect(InputStream input, org.apache.tika.metadata.Metadata metadata)intgetMarkLimit()voidsetMarkLimit(int markLimit)How far into the stream to read for charset detection.
-
-
-
Method Detail
-
detect
public Charset detect(InputStream input, org.apache.tika.metadata.Metadata metadata) throws IOException
- Specified by:
detectin interfaceorg.apache.tika.detect.EncodingDetector- Throws:
IOException
-
getMarkLimit
public int getMarkLimit()
-
setMarkLimit
@Field public void setMarkLimit(int markLimit)
How far into the stream to read for charset detection. Default is 8192.- Parameters:
markLimit-
-
-