Packages

o

fm.common

FileUtil

object FileUtil extends Logging

Source
FileUtil.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileUtil
  2. Logging
  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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. def copy(src: File, dst: File, overwrite: Boolean = true): Unit
  7. def detectCharset(f: File): Option[Charset]
  8. def detectCharsetName(f: File): Option[String]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def fileExists(file: File): Boolean
  12. def fileExists(file: String): Boolean
  13. def fileOrResourceExists(file: File): Boolean
  14. def fileOrResourceExists(file: String): Boolean
  15. def fileOrResourceLastModified(file: File): Long
  16. def fileOrResourceLastModified(file: String): Long
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def getDirectoryForFile(f: File): File
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. lazy val logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @transient()
  22. def md5(f: File): Array[Byte]
  23. def md5Hex(f: File): String
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. def readBytes(f: File): Array[Byte]
  28. def readBytes(file: String): Array[Byte]
  29. def readFile(f: File, encoding: Charset): String
  30. def readFile(f: File, encoding: String): String
  31. def readFile(f: File): String
  32. def readFile(file: String, encoding: Charset): String
  33. def readFile(file: String, encoding: String): String
  34. def readFile(file: String): String
  35. def readFileOrResource(f: File, encoding: Charset): String
  36. def readFileOrResource(f: File, encoding: String): String
  37. def readFileOrResource(f: File): String
  38. def readFileOrResource(file: String, encoding: Charset): String
  39. def readFileOrResource(file: String, encoding: String): String
  40. def readFileOrResource(file: String): String
  41. def readInputStream(is: InputStream, charset: Charset): String
  42. def readInputStream(is: InputStream, encoding: String): String
  43. def readInputStream(is: InputStream): String
  44. def readLines(resource: Resource[BufferedReader])(f: (String) => Unit): Unit
  45. def readLines(is: InputStream)(f: (String) => Unit): Unit
  46. def readLines(file: File)(f: (String) => Unit): Unit
  47. def readResource(f: File, encoding: Charset): String
  48. def readResource(f: File, encoding: String): String
  49. def readResource(f: File): String
  50. def readResource(file: String, encoding: Charset): String
  51. def readResource(file: String, encoding: String): String
  52. def readResource(file: String): String
  53. def resourceExists(file: File): Boolean
  54. def resourceExists(file: String): Boolean
  55. def rm_rf(dir: File, keepDirectory: Boolean = false): Boolean
  56. def sha1(f: File): Array[Byte]
  57. def sha1Hex(f: File): String
  58. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  59. def toString(): String
    Definition Classes
    AnyRef → Any
  60. def useFileThenDelete[T](file: File)(f: (File) => T): T

    Passes the file into the passed in function and then delete the file

  61. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  62. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  63. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  64. def withTempFile[T](prefix: String, suffix: String, directory: File)(f: (File) => T): T

    Creates a temp file, passes it to the function, and then deletes the temp file

  65. def withTempFile[T](prefix: String, suffix: String)(f: (File) => T): T

    Creates a temp file, passes it to the function, and then deletes the temp file

  66. def writeFile(f: File, is: InputStream, overwrite: Boolean): Unit
  67. def writeFile(f: File, bytes: Array[Byte], overwrite: Boolean): Unit
  68. def writeFile(f: File, contents: String, overwrite: Boolean): Unit
  69. def writeFile[T](f: File, overwrite: Boolean)(fun: (OutputStream) => T): T
  70. def writeFileWithTemp[T](target: File)(f: (File) => T): T

    Creates a tmp file that can be written to and then will be atomically renamed to the target

  71. def writeRawFile(f: File, is: InputStream, overwrite: Boolean): Unit
  72. def writeRawFile(f: File, overwrite: Boolean)(fun: (OutputStream) => Unit): Unit

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped