Skip to content

Most visited

Recently visited

navigation
Added in API level 1

ParcelFileDescriptor.AutoCloseOutputStream

public static class ParcelFileDescriptor.AutoCloseOutputStream
extends FileOutputStream

java.lang.Object
   ↳ java.io.OutputStream
     ↳ java.io.FileOutputStream
       ↳ android.os.ParcelFileDescriptor.AutoCloseOutputStream
Known Direct Subclasses


An OutputStream 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.AutoCloseOutputStream(ParcelFileDescriptor pfd)

Public methods

void close()

Closes this stream.

Inherited methods

From class java.io.FileOutputStream
From class java.io.OutputStream
From class java.lang.Object
From interface java.io.Closeable
From interface java.io.Flushable
From interface java.lang.AutoCloseable

Public constructors

ParcelFileDescriptor.AutoCloseOutputStream

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

Parameters
pfd ParcelFileDescriptor

Public methods

close

Added in API level 1
void close ()

Closes this stream. Implementations of this method should free any resources used by the stream. 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.