rv = NS_NewLocalFile(data, PR_FALSE, getter_AddRefs(file));
rv = NS_NewNativeLocalFile(data, PR_FALSE, getter_AddRefs(file));
NS_NewPostDataStream(nsIInputStream **result,                     PRBool isFile,                     const nsACString &data,                     PRUint32 encodeFlags,                     nsIIOService* ioService = nsnull)     // pass in nsIIOService to optimize callers{    nsresult rv;    if (isFile) {        nsCOMPtr<nsILocalFile> file;        nsCOMPtr<nsIInputStream> fileStream;        rv = NS_NewLocalFile(data, PR_FALSE, getter_AddRefs(file));        if (NS_FAILED(rv)) return rv;        rv = NS_NewLocalFileInputStream(getter_AddRefs(fileStream), file);        if (NS_FAILED(rv)) return rv;        // wrap the file stream with a buffered input stream        return NS_NewBufferedInputStream(result, fileStream, 8192);    }    // otherwise, create a string stream for the data    return NS_NewCStringInputStream(result, data);}