scalaz.stream

io

object io extends io with gzip

Linear Supertypes
gzip, io, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. io
  2. gzip
  3. io
  4. AnyRef
  5. 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.

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

    Definition Classes
    io
  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.

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

    Promote an effectful function to a Channel.

    Promote an effectful function to a Channel.

    Definition Classes
    io
  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.

    Definition Classes
    io
  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.

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

    Definition Classes
    io
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def deflate(bufferSize: Int = 1024 * 32): Channel[Task, Option[Array[Byte]], Array[Byte]]

    Channel that deflates (compresses) its input Array[Byte], using a java.util.zip.Deflater.

    Channel that deflates (compresses) its input Array[Byte], using a java.util.zip.Deflater. May emit empty arrays if the compressor is waiting for more data to produce a chunk. The returned Channel flushes any buffered compressed data when it encounters a None.

    bufferSize

    buffer to use when flushing data out of Deflater. Defaults to 32k

    Definition Classes
    gzip
  14. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  16. 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.

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

    Definition Classes
    io
  17. 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.

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

    Definition Classes
    io
  18. def fillBuffer[A](buf: Buffer[A]): Sink[Task, A]

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

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

    Definition Classes
    io
  19. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  21. def gunzip(bufferSize: Int = 1024 * 32): Channel[Task, Array[Byte], Array[Byte]]

    Definition Classes
    gzip
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. def inflate(bufferSize: Int = 1024 * 32, gzip: Boolean = false): Channel[Task, Array[Byte], Array[Byte]]

    Channel that inflates (decompresses) the input bytes.

    Channel that inflates (decompresses) the input bytes. May emit empty Array[Byte] if decompressor is not ready to produce data. Last emit will always contain all data inflated.

    bufferSize

    buffer to use when flushing data out of Inflater. Defaults to 32k

    returns

    Definition Classes
    gzip
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. 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.

    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.

    Definition Classes
    io
  26. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  29. 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.

    Definition Classes
    io
  30. 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.

    Definition Classes
    io
  31. 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.

    Definition Classes
    io
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. 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.

    Definition Classes
    io
  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from gzip

Inherited from io

Inherited from AnyRef

Inherited from Any

Ungrouped