}
public static synchronized HTMLDocument createDocument(File file, String charset) throws Exception
{
DataReader reader = ServicesContainer.get(ServiceType.SOFT_REFERENCE, READER_ID, DataReader.class);
return createDocument(reader.load(file), charset);
}
public static String detect(byte[] buf)
{
Detector det = new Detector(PSMDetector.ALL);