package io
- Source
- package.scala
- Alphabetic
- By Inheritance
- io
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
readInputStream[F[_]](fis: F[InputStream], chunkSize: Int, closeAfterUse: Boolean = true)(implicit arg0: Suspendable[F]): Stream[F, Byte]
Reads all bytes from the specified
InputStream
with a buffer size ofchunkSize
.Reads all bytes from the specified
InputStream
with a buffer size ofchunkSize
. SetcloseAfterUse
to false if theInputStream
should not be closed after use.Blocks the current thread.
-
def
readInputStreamAsync[F[_]](fis: F[InputStream], chunkSize: Int, closeAfterUse: Boolean = true)(implicit F: Async[F]): Stream[F, Byte]
Reads all bytes from the specified
InputStream
with a buffer size ofchunkSize
.Reads all bytes from the specified
InputStream
with a buffer size ofchunkSize
. SetcloseAfterUse
to false if theInputStream
should not be closed after use.This will block a thread in the current
Async
instance, so the size of any associated threadpool should be sized appropriately. - def stdin[F[_]](bufSize: Int)(implicit F: Suspendable[F]): Stream[F, Byte]
- def stdinAsync[F[_]](bufSize: Int)(implicit F: Async[F]): Stream[F, Byte]
- def stdout[F[_]](implicit F: Suspendable[F]): Sink[F, Byte]
- def stdoutAsync[F[_]](implicit F: Async[F]): Sink[F, Byte]
-
def
writeOutputStream[F[_]](fos: F[OutputStream], closeAfterUse: Boolean = true)(implicit arg0: Suspendable[F]): Sink[F, Byte]
Writes all bytes to the specified
OutputStream
.Writes all bytes to the specified
OutputStream
. SetcloseAfterUse
to false if theOutputStream
should not be closed after use.Blocks the current thread.
-
def
writeOutputStreamAsync[F[_]](fos: F[OutputStream], closeAfterUse: Boolean = true)(implicit F: Async[F]): Sink[F, Byte]
Writes all bytes to the specified
OutputStream
.Writes all bytes to the specified
OutputStream
. SetcloseAfterUse
to false if theOutputStream
should not be closed after use.This will block a thread in the current
Async
instance, so the size of any associated threadpool should be sized appropriately.