比如我可以用下面的代码创建一个文件,路径是本机的绝对路径:File myFile = new File("C:\tmp.txt");
那我能否将这个文件创建在网络中的服务器上呢?
比如:File myFile = new File("http://192.168.1.2/tmp.txt");
或者:
File myFile = new File("http://localhost/tmp.txt");