org.sonatype.tests.http.server.jetty.util
Class FileUtil
java.lang.Object
org.sonatype.tests.http.server.jetty.util.FileUtil
public class FileUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtil
public FileUtil()
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-2012 Sonatype, Inc.. All Rights Reserved.