Object

geotrellis.util

Filesystem

Related Doc: package util

Permalink

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
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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def basename(path: String): String

    Permalink

    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

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

    Permalink

    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

    Permalink

    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

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def exists(path: String): Boolean

    Permalink
  13. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  17. def join(parts: String*): String

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def readText(file: File): String

    Permalink

    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

    Permalink

    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]

    Permalink

    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)

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  29. def toMappedByteBuffer(path: String): ByteBuffer

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def writeBytes(path: String, bytes: Array[Byte]): Unit

    Permalink

    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

    Permalink

    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

    Permalink

    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