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 voidcopyFileToFolder(File file, File folder)static Stringread(File file, String encoding)static Stringread(URL location, Map<String,String> properties)static StringreadFirstLines(File file, int lineCount, String encoding)static Stringremove(String str, String... chars)static voidwrite(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
-
-