public final class FileUtils extends Object
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
addExt(String path,
String ext)
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 |
hasExt(String fileName,
String ext) |
static boolean |
hasExtNoCase(String fileName,
String ext) |
public static String addExt(String path, String ext)
path - a String 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.Copyright © 2015–2019 The veraPDF Consortium. All rights reserved.