使用Windows Live Writer撰写的第一篇博文

一直没有时间,在自己的电脑上配置起来Windows Live Writer。

 

今天抽时间搞起来后,感觉果然比在Web版写作不知道爽多少倍哦。

 

还安装了代码插件,上传代码和图片也方便了很多,霸气。

 

先上传一小段使用java,通过代理访问网络的样例代码看看,其中有惊喜哦。O(∩_∩)O~

 

public void invoke() {
        try {

            System.getProperties().setProperty("proxySet", "true");
            System.getProperties().put("proxyHost", "10.77.148.124");
            System.getProperties().put("proxyPort", "3128");

            URL myURL = new URL(
                    "http://91sp.vido.ws/getfile.php?VID=53861&mp4=0&seccode=b5b545d152ccb1525bdad01af1c20e01&max_vid=54847");
            URLConnection yc = myURL.openConnection();
            BufferedReader in = new BufferedReader(new InputStreamReader(yc
                    .getInputStream()));
            String inputLine;

            Set<String> linkSet = new HashSet<String>();

            while ((inputLine = in.readLine()) != null) {
                System.out.println(inputLine);
                Matcher m = p.matcher(inputLine);
                while (m.find()) {
                    System.out.println(m.group());
                    linkSet.add(m.group());
                }
            }
            in.close();

            for (String strUrl : linkSet) {
                getFile(strUrl);
            }

        } catch (Exception e) {
            e.printStackTrace();
        } finally {
        }
    }

 

在插入一张图片,祝大家天天开心:

image

转载于:https://www.cnblogs.com/yescoolfan/p/3462189.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值