Packages

package io

Provides various ways to work with streams that perform IO.

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

Package Members

  1. package file
  2. package net

    Provides support for doing network I/O -- TCP, UDP, and TLS.

Type Members

  1. trait Duplex extends Object with Readable with Writable

    A facade for Node.js stream.Duplex.

    A facade for Node.js stream.Duplex. Extend or cast to/from your own bindings.

    Annotations
    @JSType() @native()
    See also

    https://nodejs.org/api/stream.html

  2. trait Readable extends Object

    A facade for Node.js stream.Readable.

    A facade for Node.js stream.Readable. Extend or cast to/from your own bindings.

    Annotations
    @JSType() @native()
    See also

    https://nodejs.org/api/stream.html

  3. final class StreamDestroyedException extends IOException
  4. trait Writable extends Object

    A facade for Node.js stream.Writable.

    A facade for Node.js stream.Writable. Extend or cast to/from your own bindings.

    Annotations
    @JSType() @native()
    See also

    https://nodejs.org/api/stream.html

Value Members

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

    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.

  2. def readReadable[F[_]](readable: F[Readable], destroyIfNotEnded: Boolean = true, destroyIfCanceled: Boolean = true)(implicit F: Async[F]): Stream[F, Byte]
    Definition Classes
    ioplatform
  3. def readWritable[F[_]](f: (Writable) => F[Unit])(implicit arg0: Async[F]): Stream[F, Byte]
    Definition Classes
    ioplatform
  4. def stdin[F[_]](bufSize: Int)(implicit arg0: Sync[F]): Stream[F, Byte]

    Stream of bytes read asynchronously from standard input.

  5. def stdinUtf8[F[_]](bufSize: Int)(implicit arg0: Sync[F]): Stream[F, String]

    Stream of String read asynchronously from standard input decoded in UTF-8.

  6. def stdout[F[_]](implicit arg0: Sync[F]): Pipe[F, Byte, INothing]

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

  7. def stdoutLines[F[_], O](charset: Charset = utf8Charset)(implicit arg0: Sync[F], arg1: Show[O]): Pipe[F, O, INothing]

    Writes this stream to standard output asynchronously, converting each element to a sequence of bytes via Show and the given Charset.

    Writes this stream to standard output asynchronously, converting each element to a sequence of bytes via Show and the given Charset.

    Each write operation is performed on the supplied execution context. Writes are blocking so the execution context should be configured appropriately.

  8. def toDuplexAndRead[F[_]](f: (Duplex) => F[Unit])(implicit arg0: Async[F]): Pipe[F, Byte, Byte]
    Definition Classes
    ioplatform
  9. def toReadable[F[_]](implicit F: Async[F]): Pipe[F, Byte, Readable]
    Definition Classes
    ioplatform
  10. def toReadableResource[F[_]](s: Stream[F, Byte])(implicit arg0: Async[F]): Resource[F, Readable]
    Definition Classes
    ioplatform
  11. def unsafeReadInputStream[F[_]](fis: F[InputStream], chunkSize: Int, closeAfterUse: Boolean = true)(implicit F: Sync[F]): Stream[F, Byte]

    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.

    Recycles an underlying input buffer for performance. It is safe to call this as long as whatever consumes this Stream does not store the Chunk returned or pipe it to a combinator that does (e.g. buffer). Use readInputStream for a safe version.

  12. def writeOutputStream[F[_]](fos: F[OutputStream], closeAfterUse: Boolean = true)(implicit F: Sync[F]): Pipe[F, Byte, INothing]

    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.

    Each write operation is performed on the supplied execution context. Writes are blocking so the execution context should be configured appropriately.

  13. def writeWritable[F[_]](writable: F[Writable], endAfterUse: Boolean = true)(implicit F: Async[F]): Pipe[F, Byte, INothing]
    Definition Classes
    ioplatform

Inherited from ioplatform

Inherited from AnyRef

Inherited from Any

Ungrouped