open class Base64InputStream : FilterInputStream
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.
|
| Inherited functions |
From class FilterInputStream
Int |
read(b: ByteArray!)
Reads up to byte.length bytes of data from this input stream into an array of bytes. This method blocks until some input is available.
This method simply performs the call read(b, 0, b.length) and returns the result. It is important that it does not do in.read(b) instead; certain subclasses of FilterInputStream depend on the implementation strategy actually used.
|
|
Public constructors
<init>
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
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
open fun close(): Unit
| Exceptions |
java.lang.Exception |
if this resource cannot be closed |
java.io.IOException |
if an I/O error occurs |
mark
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
open fun markSupported(): Boolean
| Return |
Boolean |
true if this stream type supports the mark and reset method; false otherwise. |
read
open fun read(): Int
| Return |
Int |
the next byte of data, or -1 if the end of the stream is reached. |
read
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
open fun reset(): Unit
skip
open fun skip(n: Long): Long
| Parameters |
n |
Long: the number of bytes to be skipped. |
| Return |
Long |
the actual number of bytes skipped. |