org.sonatype.tests.http.server.jetty.util
Class FileUtil

java.lang.Object
  extended by org.sonatype.tests.http.server.jetty.util.FileUtil

public class FileUtil
extends Object


Constructor Summary
FileUtil()
           
 
Method Summary
static long copy(File src, File target)
           
static File createTempFile(byte[] pattern, int repeat)
           
static File createTempFile(String contents)
           
static void delete(File file)
           
static byte[] getContent(File file)
           
static boolean mkdirs(File directory)
           
static void write(byte[] pattern, int repeat, File file)
           
static void write(String content, File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
Method Detail

createTempFile

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

createTempFile

public static File createTempFile(byte[] pattern,
                                  int repeat)
                           throws IOException
Throws:
IOException

write

public static void write(String content,
                         File file)
                  throws IOException
Throws:
IOException

write

public static void write(byte[] pattern,
                         int repeat,
                         File file)
                  throws IOException
Throws:
IOException

copy

public static long copy(File src,
                        File target)
                 throws IOException
Throws:
IOException

delete

public static void delete(File file)
                   throws IOException
Throws:
IOException

getContent

public static byte[] getContent(File file)
                         throws IOException
Throws:
IOException

mkdirs

public static boolean mkdirs(File directory)


Copyright © 2010-2013 Sonatype, Inc.. All Rights Reserved.