class FileTarget extends ProcessOutputTarget[Byte, Unit] with ProcessErrorTarget[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)
- path
Path to the file to be written
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
connect(systemProcess: java.lang.Process, blockingExecutionContext: ExecutionContext)(implicit contextShift: ContextShift[IO]): Stream[IO, 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
- blockingExecutionContext
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
run(stream: Stream[IO, Byte])(implicit contextShift: ContextShift[IO]): IO[Fiber[IO, 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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toRedirect: Redirect
Gets the redirection mode
Gets the redirection mode
- Definition Classes
- FileTarget → ProcessIO
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )