Class/Object

de.h2b.scala.lib.io

TemporaryDirectory

Related Docs: object TemporaryDirectory | package io

Permalink

class TemporaryDirectory extends AnyRef

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TemporaryDirectory
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TemporaryDirectory(target: Option[Path])

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def add(f: File, options: CopyOption*): File

    Permalink

    Adds a file or a directory to this temporary directory by copying it from the source location.

    Adds a file or a directory to this temporary directory by copying it from the source location. In case of a directory, the whole tree is copied.

    f

    the source location, must be a regular file or a directory

    returns

    the target location

    Annotations
    @throws( classOf[IOException] )
    Exceptions thrown

    IllegalArgumentException if f is not a regular file or a directory

    IllegalStateException if this object is not in active state

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def cleanUp(): Boolean

    Permalink

    Removes all files and directories added or created before.

    Removes all files and directories added or created before.

    The root of this temporary directory itself is not deleted and it remains in "active" state, which means that new files and directories still can be added or created.

    returns

    true if successful, false otherwise

    Exceptions thrown

    IllegalStateException if this object is not in active state

    Note

    Can only be successful if no files or directories have been added by bypassing the methods of this object.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. def createDir(dir: String): File

    Permalink

    Creates a new directory within this temporary directory.

    Creates a new directory within this temporary directory.

    If the dir argument is empty, a unique directory is created.

    If the dir argument denotes a path with elements separated by any characters defined by Separators, the whole path is created as necessary, but the last element of the path must not exist before.

    returns

    the target location

    Annotations
    @throws( classOf[IOException] )
    Exceptions thrown

    IOException if the directory cannot be created

  9. def createFile(file: String): File

    Permalink

    Creates a new file within this temporary directory.

    Creates a new file within this temporary directory.

    If the file argument is empty, a unique file is created.

    If the file argument denotes a path with elements separated by any characters defined by Separators, the whole path is created as necessary, but the last element (the regular file) must not exist before.

    returns

    the target location

    Annotations
    @throws( classOf[IOException] )
    Exceptions thrown

    IOException if the file cannot be created

  10. def destroy(): Boolean

    Permalink

    Removes all files and directories added before and the root of the temporary directory itself.

    Removes all files and directories added before and the root of the temporary directory itself.

    Sets this temporary directory to "inactive" state, which means that any subsequent method calls other than isInActiveState will throw an illegal-state exception.

    returns

    true if successful, false otherwise

    Exceptions thrown

    IllegalStateException if this object is not in active state

    Note

    Can only be successful if no files or directories have been added by bypassing the methods of this object.

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  15. def isInActiveState: Boolean

    Permalink
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped