org.openqa.selenium.internal
Class TemporaryFilesystem

java.lang.Object
  extended by org.openqa.selenium.internal.TemporaryFilesystem

public class TemporaryFilesystem
extends java.lang.Object

A wrapper around temporary filesystem behaviour.

Author:
gblock@google.com (Gregory Block)

Method Summary
static java.io.File createTempDir(java.lang.String prefix, java.lang.String suffix)
          Create a temporary directory, and track it for deletion.
static void deleteTempDir(java.io.File file)
          Delete a temporary directory that we were responsible for creating.
static void deleteTemporaryFiles()
          Perform the operation that a shutdown hook would have.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createTempDir

public static java.io.File createTempDir(java.lang.String prefix,
                                         java.lang.String suffix)
Create a temporary directory, and track it for deletion.

Parameters:
prefix - the prefix to use when creating the temporary directory
suffix - the suffix to use when creating the temporary directory
Returns:
the temporary directory to create

deleteTempDir

public static void deleteTempDir(java.io.File file)
Delete a temporary directory that we were responsible for creating.

Parameters:
file - the file to delete
Throws:
WebDriverException - if interrupted

deleteTemporaryFiles

public static void deleteTemporaryFiles()
Perform the operation that a shutdown hook would have.



Copyright © 2010. All Rights Reserved.