org.aksw.commons.util
Class Files

java.lang.Object
  extended by org.aksw.commons.util.Files

public class Files
extends Object

Author:
Sebastian Hellmann

Constructor Summary
Files()
           
 
Method Summary
static void createFile(File file, String content)
          like writefile, but always deletes any existing file
static void mkdir(File path)
           
static String readContent(File file)
           
static void writeToFile(File file, String content, boolean append)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Files

public Files()
Method Detail

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.