Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static class

ParcelFileDescriptor.AutoCloseOutputStream

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

Class Overview

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.
[Expand]
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

public ParcelFileDescriptor.AutoCloseOutputStream ( ParcelFileDescriptor pfd)

Added in API level 1

Public Methods

public void close ()

Added in API level 1

Closes this stream. Implementations of this method should free any resources used by the stream. This implementation does nothing.