nsresult rv = it->Init(aStreamToWrap, aBufferSize); if (NS_FAILED(rv)) return rv;
NS_NewUTF8ConverterStream(nsIUnicharInputStream** aInstancePtrResult,                          nsIInputStream* aStreamToWrap,                          PRInt32 aBufferSize){  // Create converter input stream  UTF8InputStream* it =    new UTF8InputStream(aStreamToWrap, aBufferSize);    if (nsnull == it) {    return NS_ERROR_OUT_OF_MEMORY;  }  return it->QueryInterface(NS_GET_IID(nsIUnicharInputStream),                             (void **) aInstancePtrResult);}