OutputStreamMethods

final implicit class OutputStreamMethods[T <: OutputStream](out: T) extends AnyVal

Provides extension methods for java.io.OutputStream.

See also:

InputStreamMethods

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def <<(bytes: Array[Byte]): T

Appends supplied bytes to output stream.

Appends supplied bytes to output stream.

Returns:

out

def <<(in: InputStream)(using bufferSize: BufferSize): T

Appends contents of supplied input stream.

Appends contents of supplied input stream.

Value parameters:
in

input stream from which bytes are read

Returns:

out