Package

fs2

io

Permalink

package io

Provides various ways to work with streams that perform IO.

Source
io.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. io
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. package file

    Permalink

    Provides support for working with files.

  2. def readInputStream[F[_]](fis: F[InputStream], chunkSize: Int, closeAfterUse: Boolean = true)(implicit arg0: Suspendable[F]): Stream[F, Byte]

    Permalink

    Reads all bytes from the specified InputStream with a buffer size of chunkSize.

    Reads all bytes from the specified InputStream with a buffer size of chunkSize. Set closeAfterUse to false if the InputStream should not be closed after use.

    Blocks the current thread.

  3. def readInputStreamAsync[F[_]](fis: F[InputStream], chunkSize: Int, closeAfterUse: Boolean = true)(implicit F: Async[F]): Stream[F, Byte]

    Permalink

    Reads all bytes from the specified InputStream with a buffer size of chunkSize.

    Reads all bytes from the specified InputStream with a buffer size of chunkSize. Set closeAfterUse to false if the InputStream 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.

  4. def stdin[F[_]](bufSize: Int)(implicit F: Suspendable[F]): Stream[F, Byte]

    Permalink

    Stream of bytes read from standard input.

  5. def stdinAsync[F[_]](bufSize: Int)(implicit F: Async[F]): Stream[F, Byte]

    Permalink

    Stream of bytes read asynchronously from standard input.

  6. def stdout[F[_]](implicit F: Suspendable[F]): Sink[F, Byte]

    Permalink

    Sink of bytes that writes emitted values to standard output.

  7. def stdoutAsync[F[_]](implicit F: Async[F]): Sink[F, Byte]

    Permalink

    Sink of bytes that writes emitted values to standard output asynchronously.

  8. package tcp

    Permalink

    Provides support for TCP networking.

  9. def toInputStream[F[_]](implicit F: Async[F]): Pipe[F, Byte, InputStream]

    Permalink

    Pipe that converts a stream of bytes to a stream that will emits a single java.io.InputStream, that is closed whenever the resulting stream terminates.

    Pipe that converts a stream of bytes to a stream that will emits a single java.io.InputStream, that is closed whenever the resulting stream terminates.

    If the close of resulting input stream is invoked manually, then this will await until the original stream completely terminates.

    Because all InputStream methods block (including close), the resulting InputStream should be consumed on a different thread pool than the one that is backing Async[F].

    Note that the implementation is not thread safe -- only one thread is allowed at any time to operate on the resulting java.io.InputStream.

  10. package udp

    Permalink

    Provides support for UDP networking.

  11. def writeOutputStream[F[_]](fos: F[OutputStream], closeAfterUse: Boolean = true)(implicit arg0: Suspendable[F]): Sink[F, Byte]

    Permalink

    Writes all bytes to the specified OutputStream.

    Writes all bytes to the specified OutputStream. Set closeAfterUse to false if the OutputStream should not be closed after use.

    Blocks the current thread.

  12. def writeOutputStreamAsync[F[_]](fos: F[OutputStream], closeAfterUse: Boolean = true)(implicit F: Async[F]): Sink[F, Byte]

    Permalink

    Writes all bytes to the specified OutputStream.

    Writes all bytes to the specified OutputStream. Set closeAfterUse to false if the OutputStream 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.

Inherited from AnyRef

Inherited from Any

Ungrouped