Mega Code Archive

 
Categories / Java Tutorial / File
 

Providing a URI for a remote file

import java.io.File; import java.net.URI; public class MainClass {   public static void main(String[] a) throws Exception {     File remoteFile = new File(new URI("file:///index.htm"));   } }