printf("File URL = %s\n", mFileURL.GetAsString());
PRINTF("File URL = %s\n", mFileURL.GetAsString());
nsPluginStreamToFile::nsPluginStreamToFile(const char* target, nsIPluginInstanceOwner* owner):	mTarget(PL_strdup(target)),	mFileURL(nsnull),	mOwner(owner){	NS_INIT_REFCNT();	// open the file and prepare it for writing	char buf[400], tpath[300];#ifdef XP_PC#ifdef XP_OS2    PL_strcpy(tpath, getenv("TEMP"));#else	::GetTempPath(sizeof(tpath), tpath);#endif	PRInt32 len = PL_strlen(tpath);	if ((len > 0) && (tpath[len-1] != '\\'))	{		tpath[len] = '\\';		tpath[len+1] = 0;	}#elif defined (XP_UNIX) || defined (XP_BEOS)	PL_strcpy(tpath, "/tmp/");#else	tpath[0] = 0;#endif // XP_PC	PR_snprintf(buf, sizeof(buf), "%s%08X.html", tpath, this);	// Create and validate the file spec object. (When we have a constructor for the temp	// directory, we should use this instead of the per-platform hack above).	mFileSpec = PL_strdup(buf); 	if (mFileSpec.Error())		return;	// create the file	nsISupports* ourStream;	if (NS_FAILED(NS_NewTypicalOutputFileStream(&ourStream, mFileSpec)))		return;	mFileThing = do_QueryInterface(ourStream);	NS_RELEASE(ourStream);		mFileThing->Close();	// construct the URL we'll use later in calls to GetURL()	mFileURL = mFileSpec;		printf("File URL = %s\n", mFileURL.GetAsString());}