Package org.apache.cxf.helpers
Class FileUtils
java.lang.Object
org.apache.cxf.helpers.FileUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
createTempFile
(String prefix, String suffix) static File
createTempFile
(String prefix, String suffix, File parentDir, boolean deleteOnExit) static File
static File
createTmpDir
(boolean addHook) static void
static void
static boolean
static File
getFilesRecurseUsingSuffix
(File dir, String suffix) getFilesUsingSuffix
(File dir, String suffix) static boolean
isValidFileName
(String name) static void
static void
static void
static String
Strips any leading paths
-
Method Details
-
isValidFileName
-
getDefaultTempDir
-
maybeDeleteDefaultTempDir
public static void maybeDeleteDefaultTempDir() -
createTmpDir
-
createTmpDir
-
mkDir
-
removeDir
-
delete
-
delete
-
createTempFile
- Throws:
IOException
-
createTempFile
public static File createTempFile(String prefix, String suffix, File parentDir, boolean deleteOnExit) throws IOException - Throws:
IOException
-
getFilesUsingSuffix
-
getFilesRecurseUsingSuffix
-
getFiles
-
readLines
- Throws:
Exception
-
exists
-
stripPath
Strips any leading paths
-