⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 url_to_url.java

📁 java版ace,java程序员值得一看
💻 JAVA
字号:
// This method takes in a url and a prefix name and pulls that url across the// network, stores it in a local file named prefix// for now it assumes that the url is an image only ! import java.net.* ; import java.io.* ; import java.awt.* ; public class url_to_url {   Image im ;   public url_to_url(URL url,String prefix) {     try {       im = (Image)url.getContent();    } catch (IOException i) {}    String www_path = System.getProperty("www-path");    String home_dir = System.getProperty("user.home");    String dir = home_dir + www_path ;     System.out.println("web dir is this : " + dir);      }     public static void main(String[] argv) {   URL test = null ;     try {     test = new URL("http://www.cs.wustl.edu/~rajeev/images/sand.jpg");    } catch ( MalformedURLException e) {}     url_to_url t = new url_to_url(test,"root") ;   }   }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -