NPP_StreamAsFile

아직 자원봉사자들이 한국어로 이 기사를 번역하지 않았습니다. 가입해서 이 문서가 번역되는 일에 함께 해 주세요!

« Gecko Plugin API Reference « Plug-in Side Plug-in API

Summary

Provides a local file name for the data from a stream.

Syntax

#include <npapi.h>
 
void NPP_StreamAsFile(NPP         instance,
                      NPStream*   stream,
                      const char* fname);

Parameters

The function has the following parameters:

instance
Pointer to current plug-in instance.
stream
Pointer to current stream.
fname
Pointer to full path to a local file. If an error occurs while retrieving the data or writing the file, fname may be null.

Description

When the stream is complete, the browser calls NPP_StreamAsFile to provide the instance with a full path name for a local file for the stream. NPP_StreamAsFile is called for streams whose mode is set to NP_ASFILEONLY or NP_ASFILE only in a previous call to NPP_NewStream.

If an error occurs while retrieving the data or writing the file, the file name (fname) is null.

See Also

NPP_NewStream, NPP_Write, NPP_WriteReady, NPStream, NPP

Document Tags and Contributors

태그:
Contributors to this page: Pmash, Mgjbot
Last updated by: Mgjbot,