public class ResourceUtil extends Object
| 构造器和说明 |
|---|
ResourceUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
copyResourceToFile(String resourceAbsoluteClassPath,
File targetFile)
Copy resources to file system.
|
static String |
getAbsolutePath(String classPath)
Get absolute path in file system from a classPath.
|
public static void copyResourceToFile(String resourceAbsoluteClassPath, File targetFile) throws IOException
resourceAbsoluteClassPath - resource's absolute class path, start with "/"targetFile - target fileIOExceptionCopyright © 2015. All rights reserved.