Class FileUtils
- java.lang.Object
-
- com.google.code.mojo.license.util.FileUtils
-
public final class FileUtils extends Object
Date: 16-Feb-2008
Author: Mathieu Carbou (mathieu.carbou@gmail.com)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copyFileToFolder(File file, File folder)
static String
read(File file, String encoding)
static String
read(URL location, Map<String,String> properties)
static String
readFirstLines(File file, int lineCount, String encoding)
static String
remove(String str, String... chars)
static void
write(File file, String content, String encoding)
-
-
-
Method Detail
-
write
public static void write(File file, String content, String encoding) throws IOException
- Throws:
IOException
-
read
public static String read(URL location, Map<String,String> properties) throws IOException
- Throws:
IOException
-
read
public static String read(File file, String encoding) throws IOException
- Throws:
IOException
-
readFirstLines
public static String readFirstLines(File file, int lineCount, String encoding) throws IOException
- Throws:
IOException
-
copyFileToFolder
public static void copyFileToFolder(File file, File folder) throws IOException
- Throws:
IOException
-
-