Added in API level 1

AutoCloseOutputStream


open class AutoCloseOutputStream : FileOutputStream
kotlin.Any
   ↳ java.io.OutputStream
   ↳ java.io.FileOutputStream
   ↳ android.os.ParcelFileDescriptor.AutoCloseOutputStream

An OutputStream you can create on a ParcelFileDescriptor, which will take care of calling android.os.ParcelFileDescriptor#close for you when the stream is closed.

Summary

Public constructors

Public methods
open Unit

Inherited functions

Public constructors

AutoCloseOutputStream

Added in API level 1
AutoCloseOutputStream(pfd: ParcelFileDescriptor!)

Public methods

close

Added in API level 1
open fun close(): Unit
Exceptions
java.lang.Exception if this resource cannot be closed
java.io.IOException if an I/O error occurs.