ByteStreamReader

Represents a readable stream of bytes. This interface closely resembles InputStream, minus the functionality that wouldn't have a clearly defined behavior in the context of Context propagation.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def available(): Int

Number of available bytes on the ByteStream.

Number of available bytes on the ByteStream.

def read(target: Array[Byte]): Int

Reads as many bytes as possible into the target byte array and returns the number of byes that were actually written.

Reads as many bytes as possible into the target byte array and returns the number of byes that were actually written.

def read(target: Array[Byte], offset: Int, count: Int): Int

Reads a specified number of bytes into the target buffer, starting from the offset position and returns the number of bytes that were actually read.

Reads a specified number of bytes into the target buffer, starting from the offset position and returns the number of bytes that were actually read.

def readAll(): Array[Byte]

Returns an array with all bytes from this stream.

Returns an array with all bytes from this stream.