*aInputStream = str;
if (NS_SUCCEEDED(rv)) { mResult = nsnull; *aInputStream = str; } else { *aInputStream = nsnull; }
    NS_IMETHOD GetInputStream(nsIInputStream* *aInputStream) {        nsresult rv;        nsIByteArrayInputStream* str;        rv = NS_NewByteArrayInputStream(&str, mResult, mLength);        *aInputStream = str;        return rv;    }