class FileTarget[F[_]] extends ProcessOutputTarget[F, Byte, Unit] with ProcessErrorTarget[F, Byte, Unit]
Output/error target implementation for using a file as the target
- Alphabetic
- By Inheritance
- FileTarget
- ProcessErrorTarget
- ProcessOutputTarget
- ProcessIO
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new FileTarget(path: Path)(implicit arg0: Concurrent[F])
- path
Path to the file to be written
Value Members
- 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
- FileTarget → ProcessIO
- 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
- FileTarget → ProcessIO
- def toRedirect: Redirect
Gets the redirection mode
Gets the redirection mode
- Definition Classes
- FileTarget → ProcessIO