nsTextEncoder::Init(nsIDocument* aDocument, const nsAReadableString& aMimeType, PRUint32 aFlags)
nsDocumentEncoder::Init(nsIDocument* aDocument, const nsAReadableString& aMimeType, PRUint32 aFlags)
nsTextEncoder::Init(nsIDocument* aDocument, const nsAReadableString& aMimeType, PRUint32 aFlags){  if (!aDocument)    return NS_ERROR_INVALID_ARG;  mDocument = aDocument;  NS_ADDREF(mDocument);  mMimeType = aMimeType;  mFlags = aFlags;  return NS_OK;}