Visual Studio代码的快捷方式

时间:2015-07-11 14:54:39

标签: node.js visual-studio-code

基于此:https://code.visualstudio.com/Docs/nodejs,我尝试了运行:

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.MalformedURLException;
import java.net.URL;

public class DownloadFiles {

    public static void main(String[] args) throws MalformedURLException, IOException {
        InputStream in = new BufferedInputStream(new URL("https://t.williamgates.net/image-E026_55A0B5BB.jpg").openStream());
        OutputStream out = new BufferedOutputStream(new FileOutputStream(new File("img.jpg")));

        int data;
        while((data = in.read()) != -1){
            out.write(data);
        }
        in.close();
        out.close();       
    }
}

我的计算机上有Visual Studio代码。该别名是如何创建的?

0 个答案:

没有答案