Packages

c

ai.lum.common.FileUtils

LumAICommonFileWrapper

implicit final class LumAICommonFileWrapper extends AnyVal

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

Instance Constructors

  1. new LumAICommonFileWrapper(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. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  10. def listFilesByRegex(pattern: String, caseSensitive: Boolean = true, recursive: Boolean = false): Iterator[File]
  11. def listFilesByWildcard(wildcard: String, caseSensitive: Boolean = true, recursive: Boolean = false): Iterator[File]
  12. def readByteArray(): Array[Byte]
  13. def readString(charset: Charset = UTF_8): String
  14. def readString(charset: String): String
  15. def size: Long

    Returns the size of the file (in bytes)

  16. def sizeAsBigInt: BigInt
  17. def toInputStream: BufferedInputStream

    Returns an input stream.

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

  18. def toOutputStream: BufferedOutputStream

    Returns an output stream.

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

  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