public class FileUtils extends Object
| 构造器和说明 |
|---|
FileUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static File |
createFolder(File targetFile) |
ClassLoader |
getClassLoader() |
static File |
getClassPath(Class<?> clazz)
获得类文件
|
static File |
getClassPath(Class<?> clazz,
String fileName) |
static File |
getClassPath(String packageName,
String name) |
static String |
getEncoding() |
static String |
getFileExt(String filePathName)
取指定文件的扩展名
|
static String |
getFolderPath(String folderPath)
创建并获得路径
|
static void |
newFolder(String folderPath)
创建文件夹
|
static File |
newOutFile(File outFile)
过滤输出文件:如果没有路径文件夹 创建之
|
static File |
newOutFile(String outfilePath) |
void |
setClassLoader(ClassLoader classLoader) |
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public static String getEncoding()
public static void newFolder(String folderPath)
folderPath - public static String getFolderPath(String folderPath)
folderPath - Copyright © 2015. All rights reserved.