Class UniversalEncodingDetector
- java.lang.Object
-
- com.levigo.jadice.server.util.tika.UniversalEncodingDetector
-
public class UniversalEncodingDetector extends Object
-
-
Constructor Summary
Constructors Constructor Description UniversalEncodingDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Charset
detect(InputStream input)
int
getMarkLimit()
void
setMarkLimit(int markLimit)
How far into the stream to read for charset detection.
-
-
-
Method Detail
-
detect
public Charset detect(InputStream input) throws IOException
- Throws:
IOException
-
setMarkLimit
public void setMarkLimit(int markLimit)
How far into the stream to read for charset detection. Default is 8192.- Parameters:
markLimit
- limit in byte
-
getMarkLimit
public int getMarkLimit()
-
-