public class IOUtils extends Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(Closeable closeable)
Closes a Closeable unconditionally.
|
static String |
sanitizeFilename(String inputName)
Sanitizes filename to prevent directory trasversals or other security threats
Transforms every non alphanumeric character in its ascii number in the _XX format
|
public static void closeQuietly(Closeable closeable)
closeable - the Closeable to closepublic static String sanitizeFilename(String inputName)
inputName - the name to sanitizeCopyright © 2016–2021. All rights reserved.