object FileUtil extends Logging
- Source
- FileUtil.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FileUtil
- Logging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def copy(src: File, dst: File, overwrite: Boolean = true): Unit
- def detectCharset(f: File): Option[Charset]
- def detectCharsetName(f: File): Option[String]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fileExists(file: File): Boolean
- def fileExists(file: String): Boolean
- def fileOrResourceExists(file: File): Boolean
- def fileOrResourceExists(file: String): Boolean
- def fileOrResourceLastModified(file: File): Long
- def fileOrResourceLastModified(file: String): Long
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getDirectoryForFile(f: File): File
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
- Annotations
- @transient()
- def md5(f: File): Array[Byte]
- def md5Hex(f: File): String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def readBytes(f: File): Array[Byte]
- def readBytes(file: String): Array[Byte]
- def readFile(f: File, encoding: Charset): String
- def readFile(f: File, encoding: String): String
- def readFile(f: File): String
- def readFile(file: String, encoding: Charset): String
- def readFile(file: String, encoding: String): String
- def readFile(file: String): String
- def readFileOrResource(f: File, encoding: Charset): String
- def readFileOrResource(f: File, encoding: String): String
- def readFileOrResource(f: File): String
- def readFileOrResource(file: String, encoding: Charset): String
- def readFileOrResource(file: String, encoding: String): String
- def readFileOrResource(file: String): String
- def readInputStream(is: InputStream, charset: Charset): String
- def readInputStream(is: InputStream, encoding: String): String
- def readInputStream(is: InputStream): String
- def readLines(resource: Resource[BufferedReader])(f: (String) => Unit): Unit
- def readLines(is: InputStream)(f: (String) => Unit): Unit
- def readLines(file: File)(f: (String) => Unit): Unit
- def readResource(f: File, encoding: Charset): String
- def readResource(f: File, encoding: String): String
- def readResource(f: File): String
- def readResource(file: String, encoding: Charset): String
- def readResource(file: String, encoding: String): String
- def readResource(file: String): String
- def resourceExists(file: File): Boolean
- def resourceExists(file: String): Boolean
- def rm_rf(dir: File, keepDirectory: Boolean = false): Boolean
- def sha1(f: File): Array[Byte]
- def sha1Hex(f: File): String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def useFileThenDelete[T](file: File)(f: (File) => T): T
Passes the file into the passed in function and then delete the file
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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
- 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
- def writeFile(f: File, is: InputStream, overwrite: Boolean): Unit
- def writeFile(f: File, bytes: Array[Byte], overwrite: Boolean): Unit
- def writeFile(f: File, contents: String, overwrite: Boolean): Unit
- def writeFile[T](f: File, overwrite: Boolean)(fun: (OutputStream) => T): T
- 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
- def writeRawFile(f: File, is: InputStream, overwrite: Boolean): Unit
- def writeRawFile(f: File, overwrite: Boolean)(fun: (OutputStream) => Unit): Unit