Packages

c

ai.lum.common.FileUtils

FileWrapper

implicit final class FileWrapper extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileWrapper
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FileWrapper(file: File)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val file: File
  6. def getBaseName(): String

    Gets the base name, minus the full path and extension.

  7. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  8. def getExtension(): String

    Gets the extension of a file.

  9. def inputStream: BufferedInputStream

    Returns an input stream.

    Returns an input stream. Don't forget to close it!

  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def listFilesByRegex(pattern: String, caseSensitive: Boolean = true, recursive: Boolean = false): Iterator[File]
  12. def listFilesByWildcard(wildcard: String, caseSensitive: Boolean = true, recursive: Boolean = false): Iterator[File]
  13. def outputStream: BufferedOutputStream

    Returns an output stream.

    Returns an output stream. Don't forget to close it!

  14. def readByteArray(): Array[Byte]
  15. def readString(charset: Charset = UTF_8): String
  16. def readString(charset: String): String
  17. def size: Long

    Returns the size of the file (in bytes)

  18. def sizeAsBigInt: BigInt
  19. def toString(): String
    Definition Classes
    Any
  20. def touch(): Unit
  21. def wildcardMatch(wildcard: String, caseSensitive: Boolean = true): Boolean

    Checks a file to see if it matches the specified wildcard matcher allowing control over case-sensitivity.

  22. def writeByteArray(bytes: Array[Byte], off: Int, len: Int, append: Boolean = false): Unit
  23. def writeByteArray(bytes: Array[Byte], append: Boolean): Unit
  24. def writeByteArray(bytes: Array[Byte]): Unit
  25. def writeString(string: String, charset: Charset = UTF_8, append: Boolean = false): Unit
  26. def writeString(string: String, charset: Charset): Unit
  27. def writeString(string: String, charset: String, append: Boolean): Unit
  28. def writeString(string: String, charset: String): Unit

Inherited from AnyVal

Inherited from Any

Ungrouped