InputStream

expect abstract class InputStream(source)

This class is an abstract class for all input streams

Since

0.1.0

Inheritors

actual abstract class InputStream(source)

Constructors

Link copied to clipboard
expect constructor()
constructor()

Properties

Link copied to clipboard

Returns a BufferedInputStream that reads from this input stream.

Link copied to clipboard

Returns a CountingInputStream that reads from this input stream.

Link copied to clipboard

Returns a DataInputStream that reads from this input stream.

Link copied to clipboard

Returns a BufferedInputStream that reads from this input stream.

Functions

Link copied to clipboard

Returns a BufferedInputStream that reads from this input stream.

Link copied to clipboard

Returns a CountingInputStream that reads from this input stream.

Link copied to clipboard

Returns a DataInputStream that reads from this input stream.

Link copied to clipboard
expect open fun available(): Int

Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.

actual open fun available(): Int

Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.

Link copied to clipboard
expect open fun close()

Closes this input stream and releases any system resources associated with the stream.

actual open fun close()

Closes this input stream and releases any system resources associated with the stream.

Link copied to clipboard
expect open fun mark(readlimit: Int)

Marks the current position in this input stream.

actual open fun mark(readlimit: Int)

Marks the current position in this input stream.

Link copied to clipboard
expect open fun markSupported(): Boolean

Tests if this input stream supports the mark and reset methods.

actual open fun markSupported(): Boolean

Tests if this input stream supports the mark and reset methods.

Link copied to clipboard
expect abstract fun read(): Int

Reads the next byte of data from the input stream.

expect open fun read(b: ByteArray): Int

Reads some number of bytes from the input stream and stores them into the buffer array b.

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

Reads up to len bytes of data from the input stream into an array of bytes.

actual abstract fun read(): Int

Reads the next byte of data from the input stream.

actual open fun read(b: ByteArray): Int

Reads some number of bytes from the input stream and stores them into the buffer array b. The number of bytes actually read is returned as an integer. This method blocks until input data is available, end of file is detected, or an exception is thrown.

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

Reads up to len bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len bytes, but a smaller number may be read. The number of bytes actually read is returned as an integer.

Link copied to clipboard
expect open fun readNBytes(n: Int): ByteArray
expect open fun readNBytes(b: ByteArray, off: Int, len: Int): Int

Returns the number of bytes that can be read (or skipped over) from this input stream without

actual open fun readNBytes(n: Int): ByteArray
actual open fun readNBytes(b: ByteArray, off: Int, len: Int): Int

Returns the number of bytes that can be read (or skipped over) from this input stream without

Link copied to clipboard
expect open fun reset()

Resets this input stream to the position at the time the mark method was last called on this input stream.

actual open fun reset()

Resets this input stream to the position at the time the mark method was last called on this input stream.

Link copied to clipboard
expect open fun skip(n: Long): Long

Skips over and discards n bytes of data from this input stream.

actual open fun skip(n: Long): Long

Skips over and discards n bytes of data from this input stream.