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

📄 urlreader.java

📁 java安全
💻 JAVA
字号:
/* * @(#)URLReader.java	1.1 99/10/06 * * Copyright 1995-1998 by Sun Microsystems, Inc., * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. * * This software is the confidential and proprietary information * of Sun Microsystems, Inc. ("Confidential Information").  You * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Sun. */import java.net.*;import java.io.*;/*  * This example illustrates using a URL to access resources * on a secure site. * * To use Sun's reference implementation of HTTPS protocol, Please set  * the following Java system property: *  *    java.protocol.handler.pkgs = com.sun.net.ssl.internal.www.protocol * * If you are running inside a firewall, please also set the following * Java system properties to the appropriate value: * *   https.proxyHost = <secure proxy server hostname> *   https.proxyPort = <secure proxy server port> *  */public class URLReader {    public static void main(String[] args) throws Exception {	URL verisign = new URL("https://www.verisign.com/");	BufferedReader in = new BufferedReader(				new InputStreamReader(				verisign.openStream()));	String inputLine;	while ((inputLine = in.readLine()) != null)	    System.out.println(inputLine);	in.close();    }}

⌨️ 快捷键说明

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