NS_ASSERTION(aStream != nsnull, "a valid stream is required"); nsHTMLToTXTSinkStream* it = new nsHTMLToTXTSinkStream(aStream, nsnull);
NS_ASSERTION(aString != nsnull, "a valid stream is required"); nsHTMLToTXTSinkStream* it = new nsHTMLToTXTSinkStream(nsnull, aString, aFlags);
NS_New_HTMLToTXT_SinkStream(nsIHTMLContentSink** aInstancePtrResult,                             nsIOutputStream* aStream,                            const nsString* aCharsetOverride,                            PRUint32 aWrapColumn,                            PRBool aPrettyPrint){  NS_ASSERTION(aStream != nsnull, "a valid stream is required");  nsHTMLToTXTSinkStream* it = new nsHTMLToTXTSinkStream(aStream, nsnull);  if (nsnull == it) {    return NS_ERROR_OUT_OF_MEMORY;  }  it->SetWrapColumn(aWrapColumn);  it->DoPrettyPrint(aPrettyPrint);  if (aCharsetOverride != nsnull)    it->SetCharsetOverride(aCharsetOverride);  return it->QueryInterface(kIHTMLContentSinkIID, (void **)aInstancePtrResult);}