← ZIO Process docs

ProcessStream

zio.process.ProcessStream
final case class ProcessStream(inputStream: InputStream, outputStream: Option[OutputStream] = ...)

Attributes

Source
ProcessStream.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Return the output of this process as a list of lines (default encoding of UTF-8).

Return the output of this process as a list of lines (default encoding of UTF-8).

Attributes

Source
ProcessStream.scala
def lines(charset: Charset): ZIO[Any, CommandError, Chunk[String]]

Return the output of this process as a list of lines with the specified encoding.

Return the output of this process as a list of lines with the specified encoding.

Attributes

Source
ProcessStream.scala

Return the output of this process as a stream of lines (default encoding of UTF-8).

Return the output of this process as a stream of lines (default encoding of UTF-8).

Attributes

Source
ProcessStream.scala

Return the output of this process as a chunked stream of bytes.

Return the output of this process as a chunked stream of bytes.

Attributes

Source
ProcessStream.scala

Return the entire output of this process as a string (default encoding of UTF-8).

Return the entire output of this process as a string (default encoding of UTF-8).

Attributes

Source
ProcessStream.scala
def string(charset: Charset): ZIO[Any, CommandError, String]

Return the entire output of this process as a string with the specified encoding.

Return the entire output of this process as a string with the specified encoding.

Note: Needs Java 9 or greater.

Attributes

Source
ProcessStream.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product