NS_IMETHODIMP nsXPCOMDetectorBase::Init(
NS_IMETHODIMP nsXPCOMDetector::Init(
NS_IMETHODIMP nsXPCOMDetectorBase::Init(  nsICharsetDetectionObserver* aObserver){  NS_ASSERTION(mObserver == nsnull , "Init twice");  if(nsnull == aObserver)     return NS_ERROR_ILLEGAL_VALUE;  NS_IF_ADDREF(aObserver);  mObserver = aObserver;  return NS_OK;}