implicit final class LumAICommonFileWrapper extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LumAICommonFileWrapper
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new LumAICommonFileWrapper(file: File)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val file: File
-
def
getBaseName(): String
Gets the base name, minus the full path and extension.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
getExtension(): String
Gets the extension of a file.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listFilesByRegex(pattern: String, caseInsensitive: Boolean = false, recursive: Boolean = false): Iterable[File]
- def listFilesByWildcard(wildcard: String, caseInsensitive: Boolean = false, recursive: Boolean = false): Iterable[File]
- def listFilesByWildcards(wildcards: Seq[String], caseInsensitive: Boolean = false, recursive: Boolean = false): Iterable[File]
- def readByteArray(gzipSupport: Boolean = true): Array[Byte]
- def readString(charset: Charset = UTF_8, gzipSupport: Boolean = true): String
-
def
size: Long
Returns the size of the file (in bytes)
- def sizeAsBigInt: BigInt
-
def
toInputStream: BufferedInputStream
Returns an input stream.
Returns an input stream. Don't forget to close it!
-
def
toOutputStream: BufferedOutputStream
Returns an output stream.
Returns an output stream. Don't forget to close it!
-
def
toString(): String
- Definition Classes
- Any
- def touch(): Unit
-
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.
- def writeByteArray(bytes: Array[Byte], append: Boolean = false, gzipSupport: Boolean = true): Unit
- def writeString(string: String, charset: Charset = UTF_8, append: Boolean = false, gzipSupport: Boolean = true): Unit