to top
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

? Examples
ParcelFileDescriptor.AutoCloseOutputStream( ParcelFileDescriptor fd)
Public Methods

? Examples
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

Public Constructors

public ParcelFileDescriptor.AutoCloseOutputStream (ParcelFileDescriptor fd)

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.

Throws
IOException
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.