org.aksw.commons.util
Class Files
java.lang.Object
org.aksw.commons.util.Files
public class Files
- extends Object
- Author:
- Sebastian Hellmann
|
Constructor Summary |
Files()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Files
public Files()
createFile
public static void createFile(File file,
String content)
throws IOException
- like writefile, but always deletes any existing file
- Parameters:
file - content -
- Throws:
IOException
writeToFile
public static void writeToFile(File file,
String content,
boolean append)
throws IOException
- Throws:
IOException
readContent
public static String readContent(File file)
throws IOException
- Throws:
IOException
mkdir
public static void mkdir(File path)
Copyright © 2012. All Rights Reserved.