Class FileUtils

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

public final class FileUtils extends Object
  • Method Details

    • isValidFileName

      public static boolean isValidFileName(String name)
    • getDefaultTempDir

      public static File getDefaultTempDir()
    • maybeDeleteDefaultTempDir

      public static void maybeDeleteDefaultTempDir()
    • createTmpDir

      public static File createTmpDir()
    • createTmpDir

      public static File createTmpDir(boolean addHook)
    • 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
    • getFilesUsingSuffix

      public static List<File> getFilesUsingSuffix(File dir, String suffix)
    • getFilesRecurseUsingSuffix

      public static List<File> getFilesRecurseUsingSuffix(File dir, String suffix)
    • getFiles

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

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

      public static boolean exists(File file)
    • stripPath

      public static String stripPath(String name)
      Strips any leading paths