Detector det = new Detector(lang);
//Set an observer...
//The Notify() will be called when a matching charset is found.
det.init(new ICharsetDetectionObserver()
{
public void notify(String charset)
{
HtmlCharsetDetector.found = true;
System.out.println("CHARSET = " + charset);