Google is committed to advancing racial equity for Black communities. See how.
Added in API level 8

Base64InputStream

open class Base64InputStream : FilterInputStream
kotlin.Any
   ↳ java.io.InputStream
   ↳ java.io.FilterInputStream
   ↳ android.util.Base64InputStream

An InputStream that does Base64 decoding on the data read through it.

Summary

Public constructors

<init>(in: InputStream!, flags: Int)

An InputStream that performs Base64 decoding on the data read from the wrapped stream.

Public methods

open Int

open Unit

open Unit
mark(readlimit: Int)

open Boolean

open Int

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

open Unit

open Long
skip(n: Long)

Inherited functions

Inherited properties

Public constructors

<init>

Added in API level 8
Base64InputStream(
    in: InputStream!,
    flags: Int)

An InputStream that performs Base64 decoding on the data read from the wrapped stream.

Parameters
in InputStream!: the InputStream to read the source data from
flags Int: bit flags for controlling the decoder; see the constants in Base64

Public methods

available

Added in API level 8
open fun available(): Int
Return
Int an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking.

close

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

mark

Added in API level 8
open fun mark(readlimit: Int): Unit
Parameters
readlimit Int: the maximum limit of bytes that can be read before the mark position becomes invalid.

markSupported

Added in API level 8
open fun markSupported(): Boolean
Return
Boolean true if this stream type supports the mark and reset method; false otherwise.

read

Added in API level 8
open fun read(): Int
Return
Int the next byte of data, or -1 if the end of the stream is reached.

read

Added in API level 8
open fun read(
    b: ByteArray!,
    off: Int,
    len: Int
): Int
Parameters
b ByteArray!: the buffer into which the data is read.
off Int: the start offset in the destination array b
len Int: the maximum number of bytes read.
Return
Int the total number of bytes read into the buffer, or -1 if there is no more data because the end of the stream has been reached.

reset

Added in API level 8
open fun reset(): Unit

skip

Added in API level 8
open fun skip(n: Long): Long
Parameters
n Long: the number of bytes to be skipped.
Return
Long the actual number of bytes skipped.