Object

dagr.commons.io

Io

Related Doc: package io

Permalink

object Io extends IoUtil

Singleton object to provide access to Io utility methods.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Io
  2. IoUtil
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val DevNull: Path

    Permalink
    Definition Classes
    IoUtil
  5. val StdIn: Path

    Permalink
    Definition Classes
    IoUtil
  6. val StdOut: Path

    Permalink
    Definition Classes
    IoUtil
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def assertCanWriteFile(path: Path, parentMustExist: Boolean = true): Unit

    Permalink

    Asserts that it will be possible to write to a file at Path, possibly after creating parent directories.

    Asserts that it will be possible to write to a file at Path, possibly after creating parent directories.

    path

    the path to check

    parentMustExist

    if true (default) the file or its direct parent must exist, if false then only require that the first parent that actually exists is writable

    Definition Classes
    IoUtil
  9. def assertCanWriteFiles(paths: TraversableOnce[_ <: Path], parentMustExist: Boolean = true): Unit

    Permalink

    Asserts that it will be possible to write to a file at Path, possibly after creating parent directories.

    Asserts that it will be possible to write to a file at Path, possibly after creating parent directories.

    paths

    one or more paths to check

    parentMustExist

    if true (default) the file or its direct parent must exist, if false then only require that the first parent that actually exists is writable

    Definition Classes
    IoUtil
  10. def assertListable(path: Path): Unit

    Permalink

    Asserts that the Path represents a directory that can be listed.

    Asserts that the Path represents a directory that can be listed.

    Definition Classes
    IoUtil
  11. def assertListable(paths: TraversableOnce[_ <: Path]): Unit

    Permalink

    Asserts that the Paths represent directories that can be listed.

    Asserts that the Paths represent directories that can be listed.

    Definition Classes
    IoUtil
  12. def assertReadable(path: Path): Unit

    Permalink

    Asserts that the Paths represents files that can be opened and read.

    Asserts that the Paths represents files that can be opened and read.

    Definition Classes
    IoUtil
  13. def assertReadable(paths: TraversableOnce[_ <: Path]): Unit

    Permalink

    Asserts that the Path represents a file that can be opened and read.

    Asserts that the Path represents a file that can be opened and read.

    Definition Classes
    IoUtil
  14. def assertWritableDirectory(path: Path): Unit

    Permalink

    Asserts that a path represents an existing directory and that new files can be created within the directory.

    Asserts that a path represents an existing directory and that new files can be created within the directory.

    Definition Classes
    IoUtil
  15. def assertWritableDirectory(paths: TraversableOnce[_ <: Path]): Unit

    Permalink

    Asserts that a path represents an existing directory and that new files can be created within the directory.

    Asserts that a path represents an existing directory and that new files can be created within the directory.

    Definition Classes
    IoUtil
  16. def bufferSize: Int

    Permalink

    How large a buffer should be used when buffering operations.

    How large a buffer should be used when buffering operations.

    Definition Classes
    IoUtil
  17. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  24. def makeTempDir(name: String): Path

    Permalink

    Makes a new temporary directory.

    Makes a new temporary directory.

    Definition Classes
    IoUtil
  25. def makeTempFile(prefix: String, suffix: String, dir: Option[Path] = None): Path

    Permalink

    Makes a new temporary file.

    Makes a new temporary file.

    Definition Classes
    IoUtil
  26. def mkdirs(path: Path): Boolean

    Permalink

    Method that attempts to create a directory and all it's parents.

    Method that attempts to create a directory and all it's parents.

    returns

    true if the directory exists after the call, false otherwise

    Definition Classes
    IoUtil
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def pipeStream(stream: InputStream, sink: (String) ⇒ Unit): AsyncStreamSink

    Permalink

    Creates an object that will asynchronously read character data from a stream and pipe it into a sink function.

    Creates an object that will asynchronously read character data from a stream and pipe it into a sink function.

    Definition Classes
    IoUtil
  31. def readLines(path: Path): Iterator[String]

    Permalink

    Reads the path provides and produces an iterator of lines of text from the file.

    Reads the path provides and produces an iterator of lines of text from the file.

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

    Permalink
    Definition Classes
    AnyRef
  33. def toInputStream(path: Path): InputStream

    Permalink

    Creates a new InputStream to read from the supplied path.

    Creates a new InputStream to read from the supplied path.

    Definition Classes
    IoUtil
  34. def toOutputStream(path: Path): OutputStream

    Permalink

    Creates a new BufferedReader to read from the supplied path.

    Creates a new BufferedReader to read from the supplied path.

    Definition Classes
    IoUtil
  35. def toReader(path: Path): BufferedReader

    Permalink

    Creates a new BufferedReader to read from the supplied path.

    Creates a new BufferedReader to read from the supplied path.

    Definition Classes
    IoUtil
  36. def toSource(path: Path): Source

    Permalink

    Constructs a scala Source object from the path, in a way that will correctly close the source on close().

    Constructs a scala Source object from the path, in a way that will correctly close the source on close().

    Definition Classes
    IoUtil
  37. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  38. def toWriter(path: Path): BufferedWriter

    Permalink

    Creates a new BufferedWriter to write to the supplied path.

    Creates a new BufferedWriter to write to the supplied path.

    Definition Classes
    IoUtil
  39. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def writeLines(path: Path, lines: Seq[String]): Unit

    Permalink

    Writes one or more lines to a file represented by a path.

    Writes one or more lines to a file represented by a path.

    Definition Classes
    IoUtil

Inherited from IoUtil

Inherited from AnyRef

Inherited from Any

Ungrouped