o

os

read

object read extends (ReadablePath) => String

Reads the contents of a os.Path or other os.Source as a java.lang.String. Defaults to reading the entire file as UTF-8, but you can also select a different charSet to use, and provide an offset/count to read from if the source supports seeking.

Linear Supertypes
(ReadablePath) => String, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. read
  2. Function1
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (String) => A): (ReadablePath) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(arg: Path, charSet: Codec = java.nio.charset.StandardCharsets.UTF_8, offset: Long = 0, count: Int = Int.MaxValue): String
  6. def apply(arg: ReadablePath, charSet: Codec): String
  7. def apply(arg: ReadablePath): String
    Definition Classes
    read → Function1
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def compose[A](g: (A) => ReadablePath): (A) => String
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. object bytes extends (ReadablePath) => Array[Byte]

    Reads the contents of a os.Path or os.Source as an Array[Byte]; you can provide an offset/count to read from if the source supports seeking.

  26. object channel extends (Path) => SeekableByteChannel

    Opens a SeekableByteChannel to read from the given file.

  27. object chunks

    Reads the contents of the given os.Path in chunks of the given size; returns a generator which provides a byte array and an offset into that array which contains the data for that chunk.

    Reads the contents of the given os.Path in chunks of the given size; returns a generator which provides a byte array and an offset into that array which contains the data for that chunk. All chunks will be of the given size, except for the last chunk which may be smaller.

    Note that the array returned by the generator is shared between each callback; make sure you copy the bytes/array somewhere else if you want to keep them around.

    Optionally takes in a provided input buffer instead of a chunkSize, allowing you to re-use the buffer between invocations.

  28. object inputStream extends (ReadablePath) => InputStream

    Opens a java.io.InputStream to read from the given file

  29. object lines extends (ReadablePath) => IndexedSeq[String]

    Reads the given os.Path or other os.Source as a string and splits it into lines; defaults to reading as UTF-8, which you can override by specifying a charSet.

  30. object stream extends (ReadablePath) => Readable

Inherited from (ReadablePath) => String

Inherited from AnyRef

Inherited from Any

Ungrouped