DataApi.GetFdForAssetResult

  • The DataApi.GetFdForAssetResult interface is deprecated and users should use DataClient.GetFdForAssetResponse instead.

  • This interface contains a file descriptor for the requested asset.

  • The object should be released after use.

  • It provides methods to get a file descriptor or an input stream for the asset.

public static interface DataApi.GetFdForAssetResult implements Result Releasable

This interface is deprecated.
Use DataClient.GetFdForAssetResponse.

Contains a file descriptor for the requested asset.

This object should be released after use.

Public Method Summary

abstract ParcelFileDescriptor
getFd()
Returns a file descriptor for the requested asset.
abstract InputStream
getInputStream()
Returns an input stream wrapping the file descriptor.

Inherited Method Summary

Public Methods

public abstract ParcelFileDescriptor getFd ()

Returns a file descriptor for the requested asset.

public abstract InputStream getInputStream ()

Returns an input stream wrapping the file descriptor. When this input stream is closed, the file descriptor is, as well.