byteStream

abstract fun byteStream(): InputStream

Open an InputStream to the resource.

Attempts to open a byte stream to the resource contents.

The method will block until a stream is opened or an exception is thrown.NOTE: It is the caller's responsibility to close the resulting object or resource leaks will occur.

Return

an InputStream to the contents of the resource. Cannot be null.

See also

Throws

on a network or API error.