public class FileUtilities extends Object
Constructor and Description |
---|
FileUtilities() |
Modifier and Type | Method and Description |
---|---|
static int |
countLines(File file) |
static void |
createFile(File file,
List<String> lines) |
static void |
createFile(File file,
String... lines) |
static void |
createRandomFile(File file) |
static String |
fileContents(File file) |
static String |
readLastLine(File file) |
static void |
setCanAccess(File file,
boolean canAccess) |
public static void setCanAccess(File file, boolean canAccess) throws Exception
Exception
public static String readLastLine(File file) throws IOException
IOException
public static int countLines(File file) throws IOException
IOException
public static void createRandomFile(File file) throws IOException
IOException
public static String fileContents(File file) throws IOException
IOException
public static void createFile(File file, List<String> lines) throws IOException
IOException
public static void createFile(File file, String... lines) throws IOException
IOException
Copyright © 2000-2014. All Rights Reserved.