Package

monix.nio

file

Permalink

package file

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

Type Members

  1. abstract class AsyncFileChannel extends AutoCloseable

    Permalink

    An asynchronous channel for reading, writing, and manipulating a file.

    An asynchronous channel for reading, writing, and manipulating a file.

    On the JVM this is a wrapper around java.nio.channels.AsynchronousFileChannel (class available since Java 7 for doing async I/O on files).

    Example:
    1. val out = AsyncFileChannel(File.createTempFile, StandardOpenOption.CREATE)
      val bytes = ByteBuffer.wrap("Hello world!".getBytes("UTF-8"))
      val future = out.write(bytes, 0)
      future.onComplete {
        case Success(nr) =>
          println("Bytes written: %d".format(nr))
        case Failure(exc) =>
          println(s"ERROR: " + exc.getMessage)
      }
  2. final class AsyncFileChannelConsumer extends AsyncChannelConsumer

    Permalink
  3. final class AsyncFileChannelObservable extends AsyncChannelObservable

    Permalink
  4. final class AsyncWatchServiceObservable extends WatchServiceObservable

    Permalink
  5. abstract class TaskFileChannel extends AnyRef

    Permalink

    A Task based asynchronous channel for reading, writing, and manipulating a file.

    A Task based asynchronous channel for reading, writing, and manipulating a file.

    On the JVM this is a wrapper around java.nio.channels.AsynchronousFileChannel (class available since Java 7 for doing async I/O on files).

    Example:
    1. val out = TaskFileChannel(File.createTempFile, StandardOpenOption.CREATE)
      val bytes = ByteBuffer.wrap("Hello world!".getBytes("UTF-8"))
      out.write(bytes, 0).runAsync(new Callback[Int] {
        override def onError(ex: Throwable) = println(s"ERROR: " + ex.getMessage)
        override def onSuccess(value: Int) = println("Bytes written: %d".format(value))
      })
  6. abstract class TaskWatchService extends AnyRef

    Permalink

    A Task based watch service that watches registered objects for changes and events.

    A Task based watch service that watches registered objects for changes and events. For example a file manager may use a watch service to monitor a directory for changes so that it can update its display of the list of files when files are created or deleted.

    On the JVM this is a wrapper around java.nio.file.WatchService (class available since Java 7 for registering objects for changes and events).

  7. abstract class WatchService extends AutoCloseable

    Permalink

    A watch service that watches registered objects for changes and events.

    A watch service that watches registered objects for changes and events. For example a file manager may use a watch service to monitor a directory for changes so that it can update its display of the list of files when files are created or deleted.

    On the JVM this is a wrapper around java.nio.file.WatchService (class available since Java 7 for registering objects for changes and events).

Value Members

  1. object AsyncFileChannel

    Permalink
  2. object TaskFileChannel

    Permalink
  3. object TaskWatchService

    Permalink
  4. object WatchService

    Permalink
  5. def appendAsync(path: Path, startPosition: Long, flags: Seq[StandardOpenOption] = Seq.empty)(implicit s: Scheduler): AsyncFileChannelConsumer

    Permalink
  6. def readAsync(path: Path, chunkSize: Int)(implicit s: Scheduler): AsyncFileChannelObservable

    Permalink
  7. def watchAsync(path: Path, events: Seq[Kind[_]] = Seq.empty)(implicit s: Scheduler): WatchServiceObservable

    Permalink
  8. def writeAsync(path: Path, flags: Seq[StandardOpenOption] = Seq.empty)(implicit s: Scheduler): AsyncFileChannelConsumer

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped