public static interface ContentProvider.PipeDataWriter
| android.content.ContentProvider.PipeDataWriter<T> |
将数据流写入管道的接口。 与openPipeHelper(Uri, String, Bundle, T, ContentProvider.PipeDataWriter
使用。
公共方法(Public methods) |
|
|---|---|
abstract void |
writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, T args) 从后台线程调用以将数据流式传输到管道。 |
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. |