public class TikaCharsetFinder
extends org.alfresco.encoding.AbstractCharactersetFinder
Constructor and Description |
---|
TikaCharsetFinder() |
Modifier and Type | Method and Description |
---|---|
protected Charset |
detectCharsetImpl(byte[] buffer) |
int |
getThreshold()
Return the matching threshold before we decide that
what we detected is a good match.
|
void |
setThreshold(int threshold)
At what point do we decide our match is good enough?
In the range 0-100.
|
protected Charset detectCharsetImpl(byte[] buffer) throws Exception
detectCharsetImpl
in class org.alfresco.encoding.AbstractCharactersetFinder
Exception
public int getThreshold()
public void setThreshold(int threshold)
Copyright © 2005–2018 Alfresco Software. All rights reserved.