Class FileUtils
- java.lang.Object
-
- com.mycila.maven.plugin.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 PathasPath(File file)static voidcopyFilesToFolder(File src, File dst)static voidcopyFileToFolder(File file, File folder)static Stringread(File file, String encoding)static String[]read(URL[] locations, String encoding)static Stringread(URL location, String encoding)static Stringread(URL location, String encoding, Map<String,Object> 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, String encoding, Map<String,Object> properties) throws IOException
- Throws:
IOException
-
read
public static String read(URL location, String encoding) throws IOException
- Throws:
IOException
-
read
public static String[] read(URL[] locations, String encoding) 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
-
-