o

geotrellis.util

Filesystem

object Filesystem

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

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def basename(path: String): String

    Return the path string with the final extension removed.

    Return the path string with the final extension removed.

    path

    The path whose extension is to be removed (if it has one)

    returns

    The path minus the extension

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. def copy(source: File, target: File): Unit

    Copy the given file, obliterating any existing file that already has the target name.

    Copy the given file, obliterating any existing file that already has the target name.

    source

    The path to the file to be copied

    target

    The path to the place where the file is to be copied

  8. def copy(source: String, target: String): Unit

    Copy the given file, obliterating any existing file that already has the target name.

    Copy the given file, obliterating any existing file that already has the target name.

    source

    The path to the file to be copied

    target

    The path to the place where the file is to be copied

  9. def ensureDirectory(path: String): String

    Ensure the existence of a given directory.

    Ensure the existence of a given directory.

    path

    The path to the directory

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def exists(path: String): Boolean
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    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. def join(parts: String*): String

    Join the given parts into a single string, with the parts separated by the system's file separator.

    Join the given parts into a single string, with the parts separated by the system's file separator.

    parts

    A list of parts which are to be concatenated

    returns

    The parts concatenated, separated by the file separator

  18. def mapToByteArray(path: String, data: Array[Byte], startIndex: Int, size: Int): Unit

    Make a contiguous chunk of a file available in the given array.

    Make a contiguous chunk of a file available in the given array.

    path

    The path to the file which is to be (partially) mapped into memory

    data

    An array to contain the portion of the file in question

    startIndex

    The offset into the file where the contiguous region begins

    size

    The size of the contiguous region

  19. def move(source: File, target: File): Unit

    Move (rename) the given file, obliterating any existing file that already has the target name.

    Move (rename) the given file, obliterating any existing file that already has the target name.

    source

    A java.nio.file.File representing the desired source

    target

    A java.nio.file.File representing the desired destination

  20. def move(source: String, target: String): Unit

    Move (rename) the given file, obliterating any existing file that already has the target name.

    Move (rename) the given file, obliterating any existing file that already has the target name.

    source

    The path to the file before moving

    target

    The path to the file after moving

  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def readText(file: File): String

    Return the contents of a file, interpreted as text, as a string.

    Return the contents of a file, interpreted as text, as a string.

    file

    The the file to be read

    returns

    A string containing the file's contents

  25. def readText(path: String): String

    Return the contents of a file, interpreted as text, as a string.

    Return the contents of a file, interpreted as text, as a string.

    path

    The path to the file to be read

    returns

    A string containing the file's contents

  26. def slurp(path: String, bs: Int = 1<<18): Array[Byte]

    Read the contents of a file into an array.

    Read the contents of a file into an array.

    path

    The path to the file to be read

    bs

    The block size; The file will be read in chunks of this size

    returns

    An array of bytes containing the file contents

  27. def split(path: String): (String, String)

    Split the given path into a tuple of base and extension.

    Split the given path into a tuple of base and extension.

    path

    The path which is to be split

    returns

    A tuple of the basename and the extension of the given path

  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toMappedByteBuffer(path: String): ByteBuffer

    Read the contents of a file into a MappedByteBuffer.

    Read the contents of a file into a MappedByteBuffer.

    path

    The path to the file to be read

    returns

    A MappedByteBuffer containing the mapped file contents

  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  34. def writeBytes(path: String, bytes: Array[Byte]): Unit

    Write the given array of bytes to the file pointed to by the given path.

    Write the given array of bytes to the file pointed to by the given path. This is a truncating write.

    path

    The path to the file where the data are to be written

    bytes

    An array of bytes containing the data to be written

  35. def writeText(file: File, text: String): Unit

    Write the given text into a file.

    Write the given text into a file. This is a truncating write.

    text

    A string containing the text to be written

  36. def writeText(path: String, text: String): Unit

    Write the given text into the file pointed to by the given path.

    Write the given text into the file pointed to by the given path. The is a truncating write.

    path

    The path to the file where the text will be written

    text

    A string containing the text to be written

Inherited from AnyRef

Inherited from Any

Ungrouped