Most visited

Recently visited

Added in API level 11

ContentProvider.PipeDataWriter

public static interface ContentProvider.PipeDataWriter

android.content.ContentProvider.PipeDataWriter<T>


将数据流写入管道的接口。 openPipeHelper(Uri, String, Bundle, T, ContentProvider.PipeDataWriter ) 使用。

Summary

Public methods

abstract void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, T args)

从后台线程调用以将数据流式传输到管道。

Public methods

writeDataToPipe

Added in API level 11
void writeDataToPipe (ParcelFileDescriptor output, 
                Uri uri, 
                String mimeType, 
                Bundle opts, 
                T args)

从后台线程调用以将数据流式传输到管道。 请注意,管道阻塞,所以如果客户端读取速度较慢,此线程可能会阻塞写入任意时间。

Parameters
output ParcelFileDescriptor: The pipe where data should be written. This will be closed for you upon returning from this function.
uri Uri: The URI whose data is to be written.
mimeType String: The desired type of data to be written.
opts Bundle: Options supplied by caller.
args T: Your own custom arguments.

Hooray!