Package org.verapdf.core.utils
Class FileUtils
java.lang.Object
org.verapdf.core.utils.FileUtils
- Version:
- 0.1 Created 17 Apr 2017:21:52:05
- Author:
- Carl Wilson carlwilson AT github
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Method to add a file extension to a given path if it doesn't have it and return the result.static String
extFromFileName
(String filename) static boolean
static boolean
hasExtNoCase
(String fileName, String ext)
-
Constructor Details
-
FileUtils
public FileUtils()
-
-
Method Details
-
extFromFileName
-
hasExtNoCase
-
hasExt
-
addExt
Method to add a file extension to a given path if it doesn't have it and return the result.- Parameters:
path
- aString
that carries the file name or path to add the extension to.ext
- the extension to add if not present, this should be the letters only, the dot separator '.' is not required.- Returns:
- the path with the extension added
-