return createDocument(reader.loadInputStream(input).toByteArray(), charset);
}
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);
}