Skip to content

Most visited

Recently visited

navigation
Added in API level 1

ParcelFileDescriptor.AutoCloseInputStream

public static class ParcelFileDescriptor.AutoCloseInputStream
extends FileInputStream

java.lang.Object
   ↳ java.io.InputStream
     ↳ java.io.FileInputStream
       ↳ android.os.ParcelFileDescriptor.AutoCloseInputStream
Known Direct Subclasses


An InputStream you can create on a ParcelFileDescriptor, which will take care of calling ParcelFileDescriptor.close() for you when the stream is closed.

Summary

Public constructors

ParcelFileDescriptor.AutoCloseInputStream(ParcelFileDescriptor pfd)

Public methods

void close()

Closes this stream.

Inherited methods

From class java.io.FileInputStream
From class java.io.InputStream
From class java.lang.Object
From interface java.io.Closeable
From interface java.lang.AutoCloseable

Public constructors

ParcelFileDescriptor.AutoCloseInputStream

Added in API level 1
ParcelFileDescriptor.AutoCloseInputStream (ParcelFileDescriptor pfd)

Parameters
pfd ParcelFileDescriptor

Public methods

close

Added in API level 1
void close ()

Closes this stream. Concrete implementations of this class should free any resources during close. This implementation does nothing.

Throws
IOException
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.