📜  java 从 url 获取文件 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:10.300000             🧑  作者: Mango

代码示例1
//passing url to URL class  
URL url = new URL("https://www.javatpoint.com/java-threadpoolexecutor");  
System.out.println("Url: "+ url);  
// Fetching file name   
File file = url.getFile();
System.out.println("File name in given url is : " + file);