geotrellis.util

Filesystem

object Filesystem

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Filesystem
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. 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

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. 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

  10. 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

  11. 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

  12. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Any
  18. 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

  19. 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

  20. 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

  21. 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

  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. 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

  26. 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

  27. 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

  28. 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

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  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( ... )
  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