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

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

Base64InputStream

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.
Exceptions
java.io.IOException if an I/O error occurs.

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.
Exceptions
java.io.IOException if an I/O error occurs.

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.
Exceptions
java.io.IOException If the first byte cannot be read for any reason other than end of file, or if the input stream has been closed, or if some other I/O error occurs.
java.lang.NullPointerException If b is null.
java.lang.IndexOutOfBoundsException If off is negative, len is negative, or len is greater than b.length - off

reset

Added in API level 8
open fun reset(): Unit
Exceptions
java.io.IOException if this stream has not been marked or if the mark has been invalidated.

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.
Exceptions
java.io.IOException if in.skip(n) throws an IOException.