public class TikaCharsetFinder
extends org.alfresco.encoding.AbstractCharactersetFinder
| Constructor and Description |
|---|
TikaCharsetFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected java.nio.charset.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 java.nio.charset.Charset detectCharsetImpl(byte[] buffer)
throws java.lang.Exception
detectCharsetImpl in class org.alfresco.encoding.AbstractCharactersetFinderjava.lang.Exceptionpublic int getThreshold()
public void setThreshold(int threshold)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.