de.flapdoodle.embedmongo
Class Files

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

public class Files
extends Object


Field Summary
static int BYTE_BUFFER_LENGTH
           
 
Method Summary
static File createOrCheckDir(String dir)
           
static File createOrCheckUserDir(String prefix)
           
static File createTempDir(String prefix)
           
static File createTempFile(String tempFileName)
           
static boolean forceDelete(File fileOrDir)
           
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
 

Field Detail

BYTE_BUFFER_LENGTH

public static final int BYTE_BUFFER_LENGTH
See Also:
Constant Field Values
Method Detail

createTempFile

public static File createTempFile(String tempFileName)
                           throws IOException
Throws:
IOException

createOrCheckDir

public static File createOrCheckDir(String dir)
                             throws IOException
Throws:
IOException

createOrCheckUserDir

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

createTempDir

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

forceDelete

public static boolean forceDelete(File fileOrDir)

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 © 2012. All Rights Reserved.