# Print output for @column tags ?> ParcelFileDescriptor.AutoCloseOutputStream - Android SDK | Android Developers

Most visited

Recently visited

ParcelFileDescriptor.AutoCloseOutputStream

public static class ParcelFileDescriptor.AutoCloseOutputStream
extends FileOutputStream

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


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

AutoCloseOutputStream(ParcelFileDescriptor pfd)

Public methods

void close()

Closes this file output stream and releases any system resources associated with this stream.

Inherited methods

Public constructors

AutoCloseOutputStream

public AutoCloseOutputStream (ParcelFileDescriptor pfd)

Parameters
pfd ParcelFileDescriptor

Public methods

close

public void close ()

Closes this file output stream and releases any system resources associated with this stream. This file output stream may no longer be used for writing bytes.

If this stream has an associated channel then the channel is closed as well.

Throws
IOException