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, caseInsensitive: Boolean = false, recursive: Boolean = false): Iterable[File]
  11. def listFilesByWildcard(wildcard: String, caseInsensitive: Boolean = false, recursive: Boolean = false): Iterable[File]
  12. def listFilesByWildcards(wildcards: Seq[String], caseInsensitive: Boolean = false, recursive: Boolean = false): Iterable[File]
  13. def mkChild(childName: String): File

    Returns a new File that is under the current directory (File)

  14. def mkParallel(curr: String, replacement: String): File

    Returns a new File in a parallel directory, where the parallelness is determined by what is replaced in the path.

    Returns a new File in a parallel directory, where the parallelness is determined by what is replaced in the path. NOTE: that the replacement is with the First occurrence of the curr String

  15. def mkSibling(siblingName: String): File

    Returns a new File that is inside the same parent directory as the current File

  16. def readByteArray(gzipSupport: Boolean = true): Array[Byte]
  17. def readString(charset: Charset = UTF_8, gzipSupport: Boolean = true): String
  18. def size: Long

    Returns the size of the file (in bytes)

  19. def sizeAsBigInt: BigInt
  20. def toInputStream: BufferedInputStream

    Returns an input stream.

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

  21. def toOutputStream: BufferedOutputStream

    Returns an output stream.

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

  22. def toString(): String
    Definition Classes
    Any
  23. def touch(): Unit
  24. def wildcardMatch(wildcard: String, caseInsensitive: Boolean = false): Boolean

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

  25. def writeByteArray(bytes: Array[Byte], append: Boolean = false, gzipSupport: Boolean = true): Unit
  26. def writeString(string: String, charset: Charset = UTF_8, append: Boolean = false, gzipSupport: Boolean = true): Unit

Inherited from AnyVal

Inherited from Any

Ungrouped