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 java.lang.Object

Date: 16-Feb-2008
Author: Mathieu Carbou (mathieu.carbou@gmail.com)


Method Summary
static void copyFileToFolder(java.io.File file, java.io.File folder)
           
static java.lang.String read(java.io.File file, java.lang.String encoding)
           
static java.lang.String read(java.net.URL location, java.util.Map<java.lang.String,java.lang.String> properties)
           
static java.lang.String readFirstLines(java.io.File file, int lineCount, java.lang.String encoding)
           
static java.lang.String remove(java.lang.String str, java.lang.String... chars)
           
static void write(java.io.File file, java.lang.String content, java.lang.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(java.io.File file,
                         java.lang.String content,
                         java.lang.String encoding)
                  throws java.io.IOException
Throws:
java.io.IOException

read

public static java.lang.String read(java.net.URL location,
                                    java.util.Map<java.lang.String,java.lang.String> properties)
                             throws java.io.IOException
Throws:
java.io.IOException

read

public static java.lang.String read(java.io.File file,
                                    java.lang.String encoding)
                             throws java.io.IOException
Throws:
java.io.IOException

readFirstLines

public static java.lang.String readFirstLines(java.io.File file,
                                              int lineCount,
                                              java.lang.String encoding)
                                       throws java.io.IOException
Throws:
java.io.IOException

remove

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

copyFileToFolder

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


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