android.os
Class ParcelFileDescriptor.AutoCloseOutputStream
java.lang.Object
java.io.OutputStream
java.io.FileOutputStream
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.
|
Method Summary |
void |
close()
Close the FileOutputStream. |
ParcelFileDescriptor.AutoCloseOutputStream
public ParcelFileDescriptor.AutoCloseOutputStream(ParcelFileDescriptor fd)
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.
Please submit a feedback, bug or feature