Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
checkEndsWithNoSlash(String str) |
static String |
checkEndsWithSlash(String str) |
static String |
checkStartsWithNoSlash(String str) |
static String |
checkStartsWithSlash(String str) |
static void |
closeQuietly(InputStream in) |
static void |
closeQuietly(OutputStream out) |
static String |
convertBackslashToForwardSlash(String str) |
static void |
deleteFolder(File folder) |
static String |
firstPathElement(String path) |
static String |
formatLastModified(long lastModifiedTime) |
static String |
formatSize(long size) |
static String |
getParentPath(String originalFilename) |
static boolean |
hasParents(String sourcePath) |
static String |
lastPathElement(String originalFilename) |
static String |
stripFirstPathElement(String path) |
static String |
stripLastPathElement(String path) |
static String |
stripParentPath(String rootPath,
String path) |
static String |
stripPath(String originalFilename) |
public static String stripParentPath(String rootPath, String path) throws IOException
IOException
public static void closeQuietly(InputStream in)
public static void closeQuietly(OutputStream out)
public static void deleteFolder(File folder)
public static String formatSize(long size)
public static String formatLastModified(long lastModifiedTime)
public static boolean hasParents(String sourcePath)
Copyright © 2024. All rights reserved.