Class

ai.lum.common.FileUtils

FileWrapper

Related Doc: package FileUtils

Permalink

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)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val file: File

    Permalink
  6. def getBaseName(): String

    Permalink

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

  7. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  8. def getExtension(): String

    Permalink

    Gets the extension of a file.

  9. def inputStream: BufferedInputStream

    Permalink

    Returns an input stream.

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

  10. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  11. def listFilesByRegex(pattern: String, caseSensitive: Boolean = true, recursive: Boolean = false): Iterator[File]

    Permalink
  12. def listFilesByWildcard(wildcard: String, caseSensitive: Boolean = true, recursive: Boolean = false): Iterator[File]

    Permalink
  13. def outputStream: BufferedOutputStream

    Permalink

    Returns an output stream.

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

  14. def readByteArray(): Array[Byte]

    Permalink
  15. def readString(charset: Charset = UTF_8): String

    Permalink
  16. def readString(charset: String): String

    Permalink
  17. def size: Long

    Permalink

    Returns the size of the file (in bytes)

  18. def sizeAsBigInt: BigInt

    Permalink
  19. def toString(): String

    Permalink
    Definition Classes
    Any
  20. def touch(): Unit

    Permalink
  21. def wildcardMatch(wildcard: String, caseSensitive: Boolean = true): Boolean

    Permalink

    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

    Permalink
  23. def writeByteArray(bytes: Array[Byte], append: Boolean): Unit

    Permalink
  24. def writeByteArray(bytes: Array[Byte]): Unit

    Permalink
  25. def writeString(string: String, charset: Charset = UTF_8, append: Boolean = false): Unit

    Permalink
  26. def writeString(string: String, charset: Charset): Unit

    Permalink
  27. def writeString(string: String, charset: String, append: Boolean): Unit

    Permalink
  28. def writeString(string: String, charset: String): Unit

    Permalink

Inherited from AnyVal

Inherited from Any

Ungrouped