Packages

o

play.api.test

NoTemporaryFileCreator

object NoTemporaryFileCreator extends TemporaryFileCreator

A temporary file creator with no implementation.

Source
Helpers.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NoTemporaryFileCreator
  2. TemporaryFileCreator
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def asJava: TemporaryFileCreator

    returns

    the Java version for the temporary file creator.

    Definition Classes
    TemporaryFileCreator
  2. def create(path: Path): TemporaryFile

    Creates a temporary file from an already existing file.

    Creates a temporary file from an already existing file.

    path

    the existing temp file path

    returns

    a Temporary file wrapping the existing file.

    Definition Classes
    NoTemporaryFileCreatorTemporaryFileCreator
  3. def create(prefix: String, suffix: String): TemporaryFile

    Creates a temporary file.

    Creates a temporary file.

    prefix

    the prefix of the file.

    suffix

    the suffix of the file

    returns

    the newly created temporary file.

    Definition Classes
    NoTemporaryFileCreatorTemporaryFileCreator
  4. def delete(file: TemporaryFile): Try[Boolean]

    Deletes the temporary file.

    Deletes the temporary file.

    file

    the temporary file to be deleted.

    returns

    the boolean value of the FS delete operation, or an throwable.

    Definition Classes
    NoTemporaryFileCreatorTemporaryFileCreator