public FileCharsetDetector( InputStream detectedStream )
throws FileNotFoundException, IOException
{
nsDetector det = new nsDetector( nsPSMDetector.ALL );
det.Init( new nsICharsetDetectionObserver()
{
public void Notify( String charset )
{
FileCharsetDetector.this.charset = charset;
FileCharsetDetector.this.found = true;