scalaz.stream

io

trait io extends AnyRef

Module of Process functions and combinators for file and network I/O.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. io
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def bufferedChannel[R, I, O](acquire: Task[R])(flush: (R) ⇒ Task[O])(release: (R) ⇒ Task[Unit])(step: (R) ⇒ Task[(I) ⇒ Task[O]]): Channel[Task, Option[I], O]

    Implementation of resource for channels where resource needs to be flushed at the end of processing.

  8. def bufferedResource[R, O](acquire: Task[R])(flushAndRelease: (R) ⇒ Task[O])(step: (R) ⇒ Task[O]): Process[Task, O]

    Like resource, but the release action may emit a final value, useful for flushing any internal buffers.

    Like resource, but the release action may emit a final value, useful for flushing any internal buffers. NB: In the event of an error, this final value is ignored.

  9. def channel[A, B](f: (A) ⇒ Task[B]): Channel[Task, A, B]

    Promote an effectful function to a Channel.

  10. def chunkR(is: ⇒ InputStream): Channel[Task, Int, Array[Byte]]

    Create a Channel[Task,Int,Bytes] from an InputStream by repeatedly requesting the given number of bytes.

    Create a Channel[Task,Int,Bytes] from an InputStream by repeatedly requesting the given number of bytes. The last chunk may be less than the requested size.

    This implementation requires an array allocation for each read. To recycle the input buffer, use unsafeChunkR.

    This implementation closes the InputStream when finished or in the event of an error.

  11. def chunkW(os: ⇒ OutputStream): Process[Task, (Array[Byte]) ⇒ Task[Unit]]

    Create a Sink from an OutputStream, which will be closed when this Process is halted.

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def fileChunkR(f: String, bufferSize: Int = 4096): Channel[Task, Int, Array[Byte]]

    Create a Source from a file name and optional buffer size in bytes.

  16. def fileChunkW(f: String, bufferSize: Int = 4096): Process[Task, (Array[Byte]) ⇒ Task[Unit]]

    Create a Sink from a file name and optional buffer size in bytes.

  17. def fillBuffer[A](buf: Buffer[A]): Sink[Task, A]

    A Sink which, as a side effect, adds elements to the given Buffer.

  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def linesR(filename: String): Process[Task, String]

    Create a Process[Task,String] from the lines of a file, using the resource combinator to ensure the file is closed when processing the stream of lines is finished.

  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. def resource[R, O](acquire: Task[R])(release: (R) ⇒ Task[Unit])(step: (R) ⇒ Task[O]): Process[Task, O]

    Generic combinator for producing a Process[Task,O] from some effectful O source.

    Generic combinator for producing a Process[Task,O] from some effectful O source. The source is tied to some resource, R (like a file handle) that we want to ensure is released. See lines below for an example use.

  27. def stdOut: Sink[Task, String]

    The standard output stream, as a Sink.

    The standard output stream, as a Sink. This Sink does not emit newlines after each element. For that, use stdoutLines.

  28. def stdOutLines: Sink[Task, String]

    The standard output stream, as a Sink.

    The standard output stream, as a Sink. This Sink emits newlines after each element. If this is not desired, use stdout.

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. def unsafeChunkR(is: ⇒ InputStream): Channel[Task, Array[Byte], Array[Byte]]

    Create a Channel[Task,Array[Byte],Array[Bytes]] from an InputStream by repeatedly filling the input buffer.

    Create a Channel[Task,Array[Byte],Array[Bytes]] from an InputStream by repeatedly filling the input buffer. The last chunk may be less than the requested size.

    It is safe to recyle the same buffer for consecutive reads as long as whatever consumes this Process never stores the Array[Byte] returned or pipes it to a combinator (like buffer) that does. Use chunkR for a safe version of this combinator - this takes an Int number of bytes to read and allocates a fresh Array[Byte] for each read.

    This implementation closes the InputStream when finished or in the event of an error.

  32. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped