com.google.code.mojo.license.util
Class FileUtils

java.lang.Object
  extended by 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
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

remove

public static String remove(String str,
                            String... chars)

copyFileToFolder

public static void copyFileToFolder(File file,
                                    File folder)
                             throws IOException
Throws:
IOException


Copyright © 2008-2011 Mathieu Carbou. All Rights Reserved.