Package org.frankframework.util
Class FileUtils
java.lang.Object
org.frankframework.util.FileUtils
Utilities for batch file handling.
- Author:
- John Dekker
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic StringgetBaseName(String fileName) static StringgetFilename(ParameterList definedParameters, PipeLineSession session, File originalFile, String filenamePattern) static StringgetFileNameExtension(String fileName) static File[]static FilegetFreeFile(File file) protected static voidmakeBackups(File targetFile, int numBackups) static StringmoveFile(File orgFile, File rename2File, boolean overwrite, int numBackups, int numberOfAttempts, long waitTime) static Stringstatic booleanreadAllowed(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:
InterruptedExceptionIOException
-
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)
-