de.flapdoodle.embedmongo
Class Files

java.lang.Object
  extended by de.flapdoodle.embedmongo.Files

public class Files
extends Object


Method Summary
static File createTempDir(String prefix)
           
static File createTempFile(String prefix, String postfix)
           
static boolean deleteDir(File dir)
           
static boolean moveFile(File source, File destination)
           
static void write(InputStream in, long size, File output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createTempFile

public static File createTempFile(String prefix,
                                  String postfix)
                           throws IOException
Throws:
IOException

createTempDir

public static File createTempDir(String prefix)
                          throws IOException
Throws:
IOException

deleteDir

public static boolean deleteDir(File dir)

write

public static void write(InputStream in,
                         long size,
                         File output)
                  throws IOException
Throws:
IOException

moveFile

public static boolean moveFile(File source,
                               File destination)


Copyright © 2011. All Rights Reserved.