Package org.frankframework.util
Class FileUtils
java.lang.Object
org.frankframework.util.FileUtils
Utilities for batch file handling.
- Author:
- John Dekker
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static String
getBaseName
(String fileName) static String
getFilename
(ParameterList definedParameters, PipeLineSession session, File originalFile, String filenamePattern) static String
getFileNameExtension
(String fileName) static File[]
static File
getFreeFile
(File file) protected static void
makeBackups
(File targetFile, int numBackups) static String
moveFile
(File orgFile, File rename2File, boolean overwrite, int numBackups, int numberOfAttempts, long waitTime) static String
static boolean
readAllowed
(String rules, String fileName, FileUtils.Authenticator authenticator)
-
Constructor Details
-
FileUtils
public FileUtils()
-
-
Method Details
-
getFilename
public static String getFilename(ParameterList definedParameters, PipeLineSession session, File originalFile, String filenamePattern) throws ParameterException - Throws:
ParameterException
-
moveFile
public static String moveFile(File orgFile, File rename2File, boolean overwrite, int numBackups, int numberOfAttempts, long waitTime) throws InterruptedException, IOException - Throws:
InterruptedException
IOException
-
moveFile
public static String moveFile(File orgFile, File rename2File, int numberOfAttempts, long waitTime) throws InterruptedException - Throws:
InterruptedException
-
getFreeFile
-
copyFile
-
makeBackups
-
getFiles
-
getFileNameExtension
-
getBaseName
-
readAllowed
public static boolean readAllowed(String rules, String fileName, FileUtils.Authenticator authenticator)
-