Object

fm.common

FileUtil

Related Doc: package common

Permalink

object FileUtil extends Logging

Linear Supertypes
Logging, AnyRef, Any
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. 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 clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def copy(src: File, dst: File, overwrite: Boolean = true): Unit

    Permalink
  7. def detectCharset(f: File): Option[Charset]

    Permalink
  8. def detectCharsetName(f: File): Option[String]

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def fileExists(file: File): Boolean

    Permalink
  12. def fileExists(file: String): Boolean

    Permalink
  13. def fileOrResourceExists(file: File): Boolean

    Permalink
  14. def fileOrResourceExists(file: String): Boolean

    Permalink
  15. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def getDirectoryForFile(f: File): File

    Permalink
  18. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  20. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  21. def md5(f: File): Array[Byte]

    Permalink
  22. def md5Hex(f: File): String

    Permalink
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  26. def readBytes(f: File): Array[Byte]

    Permalink
  27. def readBytes(file: String): Array[Byte]

    Permalink
  28. def readFile(f: File, encoding: Charset): String

    Permalink
  29. def readFile(f: File, encoding: String): String

    Permalink
  30. def readFile(f: File): String

    Permalink
  31. def readFile(file: String, encoding: Charset): String

    Permalink
  32. def readFile(file: String, encoding: String): String

    Permalink
  33. def readFile(file: String): String

    Permalink
  34. def readFileOrResource(f: File, encoding: Charset): String

    Permalink
  35. def readFileOrResource(f: File, encoding: String): String

    Permalink
  36. def readFileOrResource(f: File): String

    Permalink
  37. def readFileOrResource(file: String, encoding: Charset): String

    Permalink
  38. def readFileOrResource(file: String, encoding: String): String

    Permalink
  39. def readFileOrResource(file: String): String

    Permalink
  40. def readInputStream(is: InputStream, charset: Charset): String

    Permalink
  41. def readInputStream(is: InputStream, encoding: String): String

    Permalink
  42. def readInputStream(is: InputStream): String

    Permalink
  43. def readLines(resource: Resource[BufferedReader])(f: (String) ⇒ Unit): Unit

    Permalink
  44. def readLines(is: InputStream)(f: (String) ⇒ Unit): Unit

    Permalink
  45. def readLines(file: File)(f: (String) ⇒ Unit): Unit

    Permalink
  46. def readResource(f: File, encoding: Charset): String

    Permalink
  47. def readResource(f: File, encoding: String): String

    Permalink
  48. def readResource(f: File): String

    Permalink
  49. def readResource(file: String, encoding: Charset): String

    Permalink
  50. def readResource(file: String, encoding: String): String

    Permalink
  51. def readResource(file: String): String

    Permalink
  52. def resourceExists(file: File): Boolean

    Permalink
  53. def resourceExists(file: String): Boolean

    Permalink
  54. def rm_rf(dir: File, keepDirectory: Boolean = false): Boolean

    Permalink
  55. def sha1(f: File): Array[Byte]

    Permalink
  56. def sha1Hex(f: File): String

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

    Permalink
    Definition Classes
    AnyRef
  58. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  59. def useFileThenDelete[T](file: File)(f: (File) ⇒ T): T

    Permalink

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

  60. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. def withTempFile[T](prefix: String, suffix: String, directory: File)(f: (File) ⇒ T): T

    Permalink

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

  64. def withTempFile[T](prefix: String, suffix: String)(f: (File) ⇒ T): T

    Permalink

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

  65. def writeFile(f: File, is: InputStream, overwrite: Boolean): Unit

    Permalink
  66. def writeFile(f: File, bytes: Array[Byte], overwrite: Boolean): Unit

    Permalink
  67. def writeFile(f: File, contents: String, overwrite: Boolean): Unit

    Permalink
  68. def writeFile[T](f: File, overwrite: Boolean)(fun: (OutputStream) ⇒ T): T

    Permalink
  69. def writeFileWithTemp[T](target: File)(f: (File) ⇒ T): T

    Permalink

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

  70. def writeRawFile(f: File, is: InputStream, overwrite: Boolean): Unit

    Permalink
  71. def writeRawFile(f: File, overwrite: Boolean)(fun: (OutputStream) ⇒ Unit): Unit

    Permalink

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped