DataClient.GetFdForAssetResponse

public static abstract class DataClient.GetFdForAssetResponse extends Object
implements Releasable

Contains a file descriptor for the requested asset.

This object should be {@linkplain #release() released} after use.

Public Constructor Summary

Public Method Summary

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

Inherited Method Summary

Public Constructors

public GetFdForAssetResponse ()

Public Methods

public abstract ParcelFileDescriptor getFdForAsset ()

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.