Packages

c

io.github.vigoo.prox

FileTarget

class FileTarget[F[_]] extends ProcessOutputTarget[F, Byte, Unit] with ProcessErrorTarget[F, Byte, Unit]

Output/error target implementation for using a file as the target

Linear Supertypes
ProcessErrorTarget[F, Byte, Unit], ProcessOutputTarget[F, Byte, Unit], ProcessIO[F, Byte, Unit], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileTarget
  2. ProcessErrorTarget
  3. ProcessOutputTarget
  4. ProcessIO
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FileTarget(path: Path)(implicit arg0: Concurrent[F])

    path

    Path to the file to be written

Value Members

  1. def connect(systemProcess: java.lang.Process, blocker: Blocker)(implicit contextShift: ContextShift[F]): Stream[F, Byte]

    Sets up the redirection on the given system process

    Sets up the redirection on the given system process

    systemProcess

    The process to connect to

    blocker

    The execution context on which the blocking IO stream reads/writes will be executed

    contextShift

    Context shifter

    returns

    Returns the not yet started redirection stream

    Definition Classes
    FileTargetProcessIO
  2. def run(stream: Stream[F, Byte])(implicit contextShift: ContextShift[F]): F[Fiber[F, Unit]]

    Runs the redirection stream

    Runs the redirection stream

    stream

    The stream to be executed

    contextShift

    Context shifter

    returns

    Returns the async result of running the stream

    Definition Classes
    FileTargetProcessIO
  3. def toRedirect: Redirect

    Gets the redirection mode

    Gets the redirection mode

    Definition Classes
    FileTargetProcessIO