AutoCloseInputStream

open class AutoCloseInputStream : FileInputStream
kotlin.Any
   ↳ java.io.InputStream
   ↳ java.io.FileInputStream
   ↳ android.os.ParcelFileDescriptor.AutoCloseInputStream

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

Summary

Public constructors

Public methods
open Unit

open Int

open Int

open Int
read(b: ByteArray!, off: Int, len: Int)

Inherited functions

Public constructors

<init>

AutoCloseInputStream(pfd: ParcelFileDescriptor!)

Public methods

close

open fun close(): Unit

read

open fun read(): Int

read

open fun read(b: ByteArray!): Int

read

open fun read(b: ByteArray!, off: Int, len: Int): Int