nsresult Init(nsIChannel* channel, nsISupports* context, nsIStreamListener* listener, PRUint32 growBySize, PRUint32 maxSize) { nsresult rv; rv = NS_NewPipe(&mInputStream, &mOutputStream, growBySize, maxSize, PR_TRUE, nsnull); if (NS_FAILED(rv)) return rv;
nsresult Init(nsFileProtocolHandler* handler, nsFileSpec& spec) { const char* path = spec.GetNativePathCString(); mDir = PR_OpenDir(path); if (mDir == nsnull) return NS_ERROR_FAILURE;
    nsresult Init(nsIChannel* channel, nsISupports* context, nsIStreamListener* listener,                  PRUint32 growBySize, PRUint32 maxSize) {        nsresult rv;        rv = NS_NewPipe(&mInputStream, &mOutputStream,                        growBySize, maxSize, PR_TRUE, nsnull);        if (NS_FAILED(rv)) return rv;        mChannel = channel;        NS_ADDREF(mChannel);        mContext = context;        NS_IF_ADDREF(mContext);        mListener = listener;        NS_ADDREF(mListener);        return rv;    }