Packages

package io

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class BufferSize(value: Int) extends Product with Serializable

    Specifies buffer size used in I/O operation.

  2. sealed trait FileVisitEvent extends AnyRef

    Occurs when walking file tree.

    Occurs when walking file tree.

    See also

    PathType.withVisitor

  3. final class WatchHandle extends AnyRef

    Provides opaque handle to watcher.

    Provides opaque handle to watcher.

    A handle is obtained via PathType.withWatcher.

    import java.nio.file.Paths
    import java.nio.file.StandardWatchEventKinds.ENTRY_CREATE
    import little.io.Implicits.PathType
    
    val dir = Paths.get(".")
    
    // Print message when file is created
    val handle = dir.withWatcher(ENTRY_CREATE) { evt ⇒
      println(s"${evt.context} was created.")
    }
    
    Thread.sleep(60 * 1000)
    
    // Close handle when finished
    handle.close()

Value Members

  1. object AcceptAnyFile extends FileFilter

    Implementation of java.io.FileFilter that accepts any file.

  2. object Compressor

    Includes compression methods.

  3. object FileVisitEvent

    Contains file visit events.

    Contains file visit events.

    See also

    PathType.withVisitor

  4. object Implicits

    Provides extension methods to java.io and java.nio.

  5. object MatchAnyPath extends PathMatcher

    Implementation of java.nio.file.PathMatcher that matches any path.

Ungrouped