我用的是JBuild 9 ,帮助里有这个方法啊 public File(URI uri) Creates a new File instance by converting the given file: URI into an abstract pathname. The exact form of a file: URI is system-dependent, hence the transformation performed by this constructor is also system-dependent.
你所要做的用File做不到,用Stream之类的。URI scheme is not "file",就是必须(也是缺省的)是file:开头
public File(URI uri)
Creates a new File instance by converting the given file: URI into an abstract pathname.
The exact form of a file: URI is system-dependent, hence the transformation performed by this constructor is also system-dependent.