Packages

c

org.mulesoft.common.io

JvmAsyncFile

class JvmAsyncFile extends AsyncFile

Implementation of a AsyncFile for the JVM * @todo better handling of errors, Real async mode

Attributes
protected
Linear Supertypes
AsyncFile, FileProto[Future], File, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JvmAsyncFile
  2. AsyncFile
  3. FileProto
  4. File
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JvmAsyncFile(syncFile: JvmSyncFile)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def /(name: String): AsyncFile

    A file into this file directory

    A file into this file directory

    Definition Classes
    AsyncFileFile
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def async: AsyncFile

    Returns an async view of the file

    Returns an async view of the file

    Definition Classes
    AsyncFileFile
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. def delete: Future[Unit]

    Delete a File

    Delete a File

    Definition Classes
    JvmAsyncFileFileProto
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def exists(implicit ctx: ExecutionContext = global): Future[Boolean]

    Returns true if the File exists

    Returns true if the File exists

    Definition Classes
    JvmAsyncFileFileProto
  12. val fileSystem: FileSystem

    Returns the Filesystem for this file

    Returns the Filesystem for this file

    Definition Classes
    JvmAsyncFileFile
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. val global: ExecutionContext
    Attributes
    protected
    Definition Classes
    File
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. 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
    JvmAsyncFileFileProto
  17. 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
    JvmAsyncFileFileProto
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def list: Future[Array[String]]

    list the contents of a directory.

    list the contents of a directory.

    Definition Classes
    JvmAsyncFileFileProto
  20. def mkdir(implicit ctx: ExecutionContext = global): Future[Unit]

    Create a directory.

    Create a directory.

    Definition Classes
    JvmAsyncFileFileProto
  21. 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
    JvmAsyncFileFile
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. 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
    JvmAsyncFileFile
  26. def parentFile: AsyncFile

    The parent File

    The parent File

    Definition Classes
    AsyncFileFile
  27. val path: String

    The whole file path

    The whole file path

    Definition Classes
    JvmAsyncFileFile
  28. def read(encoding: String)(implicit ctx: ExecutionContext = global): Future[CharSequence]

    Read the file.

    Read the file.

    Definition Classes
    JvmAsyncFileFileProto
  29. def sync: SyncFile

    Returns a sync view of the file

    Returns a sync view of the file

    Definition Classes
    JvmAsyncFileFile
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    File → AnyRef → Any
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def withExt(newExt: String): AsyncFile

    Get a new file replacing the extension

    Get a new file replacing the extension

    Definition Classes
    AsyncFileFile
  36. def write(data: CharSequence, encoding: String)(implicit ctx: ExecutionContext = global): Future[Unit]

    Write to the file.

    Write to the file.

    Definition Classes
    JvmAsyncFileFileProto

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AsyncFile

Inherited from FileProto[Future]

Inherited from File

Inherited from AnyRef

Inherited from Any

Ungrouped