public class FilenameNormalization extends Object
Constructor and Description |
---|
FilenameNormalization() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isNormalized(String path)
Determines whether a file path is in normalized form.
|
static File |
normalize(File f)
Normalize a
File . |
static File[] |
normalize(File[] files)
Normalizes an array of files.
|
static String |
normalize(String path)
Normalize a
String . |
static String |
normalizeFileToPath(File file)
Get the normalized file path of a Java
File object. |
public static File[] normalize(File[] files)
files
- Array of files to normalize.normalize(File)
public static File normalize(File f)
File
. This method normalizes the case of the file path
characters and then calls FilenameUtils.normalize(String)
.f
- A file.FilenameUtils.normalize(String)
public static String normalize(String path)
String
. This method normalizes the case of the file
path characters and then calls FilenameUtils.normalize(String)
.path
- The fiel path.FilenameUtils.normalize(String)
public static boolean isNormalized(String path)
path
- A file path.Copyright © 2016 The Apache Software Foundation. All rights reserved.