Build 1.0_r1(from source)

android.os
Class ParcelFileDescriptor.AutoCloseOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FileOutputStream
          extended by android.os.ParcelFileDescriptor.AutoCloseOutputStream
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
ParcelFileDescriptor

public static class ParcelFileDescriptor.AutoCloseOutputStream
extends FileOutputStream

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


Constructor Summary
ParcelFileDescriptor.AutoCloseOutputStream(ParcelFileDescriptor fd)
           
 
Method Summary
 void close()
          Close the FileOutputStream.
 
Methods inherited from class java.io.FileOutputStream
finalize, getChannel, getFD, write, write, write
 
Methods inherited from class java.io.OutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParcelFileDescriptor.AutoCloseOutputStream

public ParcelFileDescriptor.AutoCloseOutputStream(ParcelFileDescriptor fd)
Method Detail

close

public void close()
           throws IOException
Description copied from class: FileOutputStream
Close the FileOutputStream. This implementation closes the underlying OS resources allocated to represent this stream.

Specified by:
close in interface Closeable
Overrides:
close in class FileOutputStream
Throws:
IOException - If an error occurs attempting to close this FileOutputStream.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature