class JvmAsyncFile extends AsyncFile with JvmBaseFile
Implementation of a AsyncFile for the JVM * @todo better handling of errors, Real async mode
- Attributes
- protected
- Alphabetic
- By Inheritance
- JvmAsyncFile
- JvmBaseFile
- AsyncFile
- FileProto
- File
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new JvmAsyncFile(syncFile: JvmSyncFile)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def /(name: String): AsyncFile
A file into this file directory
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def async: AsyncFile
Returns an async view of the file
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def delete: Future[Unit]
Delete a File
Delete a File
- Definition Classes
- JvmAsyncFile → FileProto
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(implicit ctx: ExecutionContext = global): Future[Boolean]
Returns true if the File exists
Returns true if the File exists
- Definition Classes
- JvmAsyncFile → FileProto
- val fileSystem: FileSystem
Returns the Filesystem for this file
Returns the Filesystem for this file
- Definition Classes
- JvmAsyncFile → File
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- val global: ExecutionContext
- Definition Classes
- JvmBaseFile → File
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def isDirectory(implicit ctx: ExecutionContext = global): Future[Boolean]
Returns true if the File is a directory
Returns true if the File is a directory
- Definition Classes
- JvmAsyncFile → FileProto
- def isFile(implicit ctx: ExecutionContext = global): Future[Boolean]
Returns true if the File is a normal File
Returns true if the File is a normal File
- Definition Classes
- JvmAsyncFile → FileProto
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def list: Future[Array[String]]
list the contents of a directory.
list the contents of a directory.
- Definition Classes
- JvmAsyncFile → FileProto
- def mkdir(implicit ctx: ExecutionContext = global): Future[Unit]
Create a directory.
Create a directory.
- Definition Classes
- JvmAsyncFile → FileProto
- def name: String
Returns the name of the file or directory denoted by this abstract pathname.
Returns the name of the file or directory denoted by this abstract pathname. This is just the last name in the pathname's name sequence.
- Definition Classes
- JvmAsyncFile → File
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def parent: String
Returns the pathname string of this abstract pathname's parent, or empty if this pathname does not name a parent directory.
Returns the pathname string of this abstract pathname's parent, or empty if this pathname does not name a parent directory.
- Definition Classes
- JvmAsyncFile → File
- def parentFile: AsyncFile
The parent File
- val path: String
The whole file path
The whole file path
- Definition Classes
- JvmAsyncFile → File
- def read(encoding: String)(implicit ctx: ExecutionContext = global): Future[CharSequence]
Read the file.
Read the file.
- Definition Classes
- JvmAsyncFile → FileProto
- def sync: SyncFile
Returns a sync view of the file
Returns a sync view of the file
- Definition Classes
- JvmAsyncFile → File
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- File → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withExt(newExt: String): AsyncFile
Get a new file replacing the extension
- def write(data: CharSequence, encoding: String)(implicit ctx: ExecutionContext = global): Future[Unit]
Write to the file.
Write to the file.
- Definition Classes
- JvmAsyncFile → FileProto
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)