Apache CXF API

org.apache.cxf.helpers
Class FileUtils

java.lang.Object
  extended by org.apache.cxf.helpers.FileUtils

public final class FileUtils
extends Object


Method Summary
static File createTempFile(String prefix, String suffix)
           
static File createTempFile(String prefix, String suffix, File parentDir, boolean deleteOnExit)
           
static void delete(File f)
           
static void delete(File f, boolean inShutdown)
           
static File getDefaultTempDir()
           
static List<File> getFiles(File dir, String pattern)
           
static List<File> getFiles(File dir, String pattern, File exclude)
           
static List<File> getFilesRecurse(File dir, String pattern)
           
static List<File> getFilesRecurse(File dir, String pattern, File exclude)
           
static String getStringFromFile(File location)
           
static void mkDir(File dir)
           
static String normalizeCRLF(InputStream instream)
           
static List<String> readLines(File file)
           
static void removeDir(File d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultTempDir

public static File getDefaultTempDir()

mkDir

public static void mkDir(File dir)

removeDir

public static void removeDir(File d)

delete

public static void delete(File f)

delete

public static void delete(File f,
                          boolean inShutdown)

createTempFile

public static File createTempFile(String prefix,
                                  String suffix)
                           throws IOException
Throws:
IOException

createTempFile

public static File createTempFile(String prefix,
                                  String suffix,
                                  File parentDir,
                                  boolean deleteOnExit)
                           throws IOException
Throws:
IOException

getStringFromFile

public static String getStringFromFile(File location)

normalizeCRLF

public static String normalizeCRLF(InputStream instream)

getFiles

public static List<File> getFiles(File dir,
                                  String pattern)

getFilesRecurse

public static List<File> getFilesRecurse(File dir,
                                         String pattern)

getFiles

public static List<File> getFiles(File dir,
                                  String pattern,
                                  File exclude)

getFilesRecurse

public static List<File> getFilesRecurse(File dir,
                                         String pattern,
                                         File exclude)

readLines

public static List<String> readLines(File file)
                              throws Exception
Throws:
Exception

Apache CXF API

Apache CXF