return mParser->OnDataAvailable(request, mDirectory, aStream, aSourceOffset, aCount);
if (aCount < 1)	return(NS_OK);  char		*buffer = new char[ aCount ]; if (!buffer)	return(NS_ERROR_OUT_OF_MEMORY);  PRUint32	count; if (NS_FAILED(rv = aStream->Read(buffer, aCount, &count)) || (count == 0)) { #ifdef	DEBUG printf("nsHTTPIndexParser: OnDataAvailable read failure.\n"); #endif delete []buffer; return(rv); } if (count != aCount) { #ifdef	DEBUG printf("nsHTTPIndexParser: OnDataAvailable read # of bytes failure.\n"); #endif delete []buffer; return(NS_ERROR_UNEXPECTED); }  mLine.Append(buffer, aCount); delete [] buffer;  rv = ProcessData(); return(rv);
nsHTTPIndex::OnDataAvailable(nsIRequest *request,                             nsISupports* aContext,                             nsIInputStream* aStream,                             PRUint32 aSourceOffset,                             PRUint32 aCount){  // If mDirectory isn't set, then we should just bail. Either an  // error occurred and OnStartRequest() never got called, or  // something exploded in OnStartRequest().  if (! mDirectory)    return NS_BINDING_ABORTED;  return mParser->OnDataAvailable(request, mDirectory, aStream, aSourceOffset, aCount);}