String protocol = resourceURL.getProtocol();
File path = new File(URLDecoder.decode(resourceURL.getFile(), "utf-8"));
if (protocol.equals("file") == true) {
//文件
if (path.canRead() == true && path.isFile() == true) {
return new AutoCloseInputStream(new FileInputStream(path));
}
} else if (protocol.equals("jar") == true) {
//JAR文件
JarFile jar = ((JarURLConnection) resourceURL.openConnection()).getJarFile();
String jarFile = jar.getName().replace("\\", "/");