net.grinder.testutility
Class FileUtilities
java.lang.Object
net.grinder.testutility.FileUtilities
public class FileUtilities
- extends Object
File utilities used by the unit tests.
- Author:
- Philip Aston
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtilities
public FileUtilities()
setCanAccess
public static void setCanAccess(File file,
boolean canAccess)
throws Exception
- Throws:
Exception
readLastLine
public static String readLastLine(File file)
throws IOException
- Throws:
IOException
countLines
public static int countLines(File file)
throws IOException
- Throws:
IOException
createRandomFile
public static void createRandomFile(File file)
throws IOException
- Throws:
IOException
fileContents
public static String fileContents(File file)
throws IOException
- Throws:
IOException
createFile
public static void createFile(File file,
List<String> lines)
throws IOException
- Throws:
IOException
createFile
public static void createFile(File file,
String... lines)
throws IOException
- Throws:
IOException
Copyright © 2000-2012. All Rights Reserved.