亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? htmlwriter.java

?? 本書收入了164個完整的Java編程實例
?? JAVA
字號:
/* * Copyright (c) 2000 David Flanagan.  All rights reserved. * This code is from the book Java Examples in a Nutshell, 2nd Edition. * It is provided AS-IS, WITHOUT ANY WARRANTY either expressed or implied. * You may study, use, and modify it for any non-commercial purpose. * You may distribute it non-commercially as long as you retain this notice. * For a commercial use license, or to purchase the book (recommended), * visit http://www.davidflanagan.com/javaexamples2. */package com.davidflanagan.examples.io;import java.io.*;import java.net.*;import java.applet.Applet;import netscape.javascript.JSObject;    // A special class we need/** * An output stream that sends HTML text to a newly created web browser window. * It relies on the netscape.javascript.JSObject class to send JavaScript * commands to the Web browser, and only works for applets running in  * the Netscape Navigator Web browser. **/public class HTMLWriter extends Writer {    JSObject main_window;        // the initial browser window    JSObject window;             // the new window we create    JSObject document;           // the document of that new window    static int window_num = 0;   // used to give each new window a unique name        /**     * When you create a new HTMLWriter, it pops up a new, blank, Web browser     * window to display the output in.  You must specify the applet     * (this specifies the main browser window) and the desired size     * for the new window.     **/    public HTMLWriter(Applet applet, int width, int height) {        // Verify that we can find the JSObject class we need.  Warn if not.        try { Class c = Class.forName("netscape.javascript.JSObject"); }        catch (ClassNotFoundException e) {            throw new NoClassDefFoundError("HTMLWriter requires " +        	   "Netscape Navigator 4.0 or higher " +		   "or a browser that supports LiveConnect technology");        }	        // Get a reference to the main browser window from the applet.        main_window = JSObject.getWindow(applet);	        // Create a new window to display output in.  This command sends a	// string of JavaScript to the web browser        window = (JSObject)            main_window.eval("self.open(''," +			     "'HTMLWriter" + window_num++ + "'," +			     "'menubar,status,resizable,scrollbars," +			     "width=" + width + ",height=" + height + "')");        // Obtain the Document object of this new window, and open it.        document = (JSObject) window.getMember("document");        document.call("open", null);    }        /**     * This is the write() method required for all Writer subclasses.     * Writer defines all its other write() methods in terms of this one.     **/    public void write(char[] buf, int offset, int length) {        // If no window or document, do nothing.   This occurs if the stream        // has been closed, or if the code is not running in Navigator.        if ((window == null) || (document == null)) return;        // If the window has been closed by the user, do nothing        if (((Boolean)window.getMember("closed")).booleanValue()) return;        // Otherwise, create a string from the specified bytes        String s = new String(buf, offset, length);        // And pass it to the JS document.write() method to output the HTML        document.call("write", new String[] { s });    }        /**     * There is no general way to force JavaScript to flush all pending output,     * so this method does nothing.  To flush, output a <P> tag or some other     * HTML tag that forces a line break in the output.     **/    public void flush() {}    /**     * When the stream is closed, close the JavaScript Document object     * (But don't close the window yet.)     **/    public void close() { document.call("close", null); document = null; }        /**     * If the browser window is still open, close it.     * This method is unique to HTMLWriter.       **/    public void closeWindow() {        if (document != null) close();        if (!((Boolean)window.getMember("closed")).booleanValue())            window.call("close", null);        window = null;    }        /** A finalizer method to close the window in case we forget. */    public void finalize() { closeWindow(); }        /**     * This nested class is an applet that demonstrates the use of HTMLWriter.     * It reads the contents of the URL specified in its url parameter and     * writes them out to an HTMLWriter stream.  It will only work in      * Netscape 4.0 or later.  It requires an <APPLET> tag like this:     *   <APPLET CODE="HTMLWriter$Test.class" WIDTH=10 HEIGHT=10 MAYSCRIPT>     *   <PARAM NAME="url" VALUE="HTMLWriter.java">     *   </APPLET>     * Note that MAYSCRIPT attribute.  It is required to enable the applet     * to invoke JavaScript.     **/    public static class Test extends Applet {        HTMLWriter out;        /** When the applet starts, read and display specified URL */        public void init() {              try {                // Get the URL specified in the <PARAM> tag                URL url =		    new URL(this.getDocumentBase(), this.getParameter("url"));                // Get a stream to read its contents                Reader in = new InputStreamReader(url.openStream());                // Create an HTMLWriter stream for out output                out = new HTMLWriter(this, 400, 200);                // Read buffers of characters and output them to the HTMLWriter                char[] buffer = new char[4096];                int numchars;                while((numchars = in.read(buffer)) != -1)                     out.write(buffer, 0, numchars);                // Close the streams                in.close();                out.close();            }            catch (IOException e) {}        }        /** When the applet terminates, close the window we created */        public void destroy() { out.closeWindow(); }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区在线不卡| 欧美剧情电影在线观看完整版免费励志电影| 欧美一区二区视频在线观看2020 | 日本一二三不卡| 成人国产精品视频| 综合久久综合久久| 欧美视频日韩视频| 美女在线视频一区| 日本一区二区三级电影在线观看| 成人av网在线| 亚洲国产日韩综合久久精品| 欧美老肥妇做.爰bbww| 麻豆91免费观看| 国产精品久久久久久久久图文区| 91丨九色丨国产丨porny| 一区二区不卡在线播放| 在线不卡中文字幕| 国产美女主播视频一区| 亚洲成av人片在www色猫咪| 欧美色国产精品| 美女视频第一区二区三区免费观看网站| 精品久久久久99| av在线播放一区二区三区| 夜夜爽夜夜爽精品视频| 日韩欧美一级在线播放| 国产成人8x视频一区二区| 亚洲美女免费在线| 精品免费视频一区二区| 99热在这里有精品免费| 日韩不卡一二三区| 欧美激情综合在线| 欧美久久一二区| 成人高清视频免费观看| 天天操天天色综合| 欧美激情在线看| 欧美日韩一区不卡| 成人激情小说网站| 喷水一区二区三区| 亚洲免费观看高清在线观看| 337p日本欧洲亚洲大胆色噜噜| 91亚洲精华国产精华精华液| 捆绑调教美女网站视频一区| 中文字幕亚洲区| 精品国产1区二区| 欧美视频精品在线| 成人国产精品免费观看动漫| 免费成人性网站| 亚洲激情成人在线| 中文字幕欧美国产| 日韩精品一区二区三区中文精品| 一本到不卡免费一区二区| 国产麻豆精品视频| 蜜桃av一区二区三区电影| 一区二区三区四区亚洲| 亚洲国产成人午夜在线一区| 欧美成人性战久久| 欧美色图12p| 色婷婷综合视频在线观看| 国产一本一道久久香蕉| 人人精品人人爱| 亚洲福中文字幕伊人影院| 中文字幕一区二区三| 久久精品一区二区三区不卡牛牛| 日韩欧美一级二级| 在线不卡一区二区| 精品视频一区三区九区| 色老汉一区二区三区| 99久久免费视频.com| 成人在线一区二区三区| 国产露脸91国语对白| 精品一区二区在线播放| 麻豆精品一二三| 玖玖九九国产精品| 久久国产精品99精品国产 | 视频一区在线视频| 亚洲一区二区三区四区在线免费观看| 亚洲欧洲精品一区二区三区不卡| 欧美国产精品一区二区三区| 欧美激情在线一区二区| 久久精品视频在线看| 久久久精品免费观看| 精品噜噜噜噜久久久久久久久试看| 3atv一区二区三区| 日韩一区二区在线看| 欧美一区二区福利视频| 日韩三级在线免费观看| 日韩一区二区三区高清免费看看| 日韩亚洲欧美一区二区三区| 日韩欧美二区三区| 久久尤物电影视频在线观看| 国产欧美一区二区三区在线老狼| 久久精品人人爽人人爽| 国产精品久久久久天堂| 亚洲免费在线看| 亚洲地区一二三色| 麻豆专区一区二区三区四区五区| 国产原创一区二区三区| 粉嫩在线一区二区三区视频| 99国内精品久久| 欧美性欧美巨大黑白大战| 欧美久久一二区| 精品国产髙清在线看国产毛片| 精品国产乱码久久久久久久| 久久久精品欧美丰满| 国产精品福利一区二区三区| 亚洲无人区一区| 久久精工是国产品牌吗| 国产精品66部| 在线观看免费一区| 日韩欧美电影一二三| 国产精品天天看| 亚洲超碰精品一区二区| 精品一二三四区| 99久久精品久久久久久清纯| 欧美久久久影院| 国产性做久久久久久| 亚洲精品视频自拍| 蜜臂av日日欢夜夜爽一区| 成人免费毛片aaaaa**| 欧美三级蜜桃2在线观看| 精品国产成人在线影院 | 欧美色手机在线观看| 精品少妇一区二区三区日产乱码| 国产精品超碰97尤物18| 天天影视涩香欲综合网| 丁香婷婷综合激情五月色| 欧美日韩在线播放三区四区| 久久精品在这里| 日韩综合在线视频| 99久久婷婷国产精品综合| 欧美白人最猛性xxxxx69交| 最新高清无码专区| 久久精品999| 欧美日韩视频在线第一区| 亚洲国产精品成人综合色在线婷婷| 日韩中文字幕亚洲一区二区va在线| 丁香天五香天堂综合| 欧美电影免费观看高清完整版在线| 亚洲精品日日夜夜| 粉嫩aⅴ一区二区三区四区五区 | 18涩涩午夜精品.www| 美女mm1313爽爽久久久蜜臀| 欧洲激情一区二区| 欧美国产国产综合| 久久成人久久鬼色| 91精品麻豆日日躁夜夜躁| 国产精品精品国产色婷婷| 免费精品视频在线| 欧美麻豆精品久久久久久| 亚洲免费观看高清| www.亚洲人| 国产精品欧美久久久久一区二区 | 国产精品456露脸| 日韩免费看的电影| 日韩国产精品91| 欧美三级电影在线看| 一区二区不卡在线播放| 99久久精品情趣| 自拍视频在线观看一区二区| 国产99久久久国产精品免费看 | 久久久久国产精品免费免费搜索| 图片区小说区国产精品视频| 欧美在线看片a免费观看| 亚洲男人电影天堂| 91在线视频播放地址| 综合欧美亚洲日本| 色综合天天综合网天天狠天天| 中文幕一区二区三区久久蜜桃| 激情五月婷婷综合| 日韩精品一区二区三区在线播放| 五月天激情综合| 欧美一区三区四区| 蜜臀99久久精品久久久久久软件| 欧美一区二区视频在线观看2020| 青青草视频一区| 欧美本精品男人aⅴ天堂| 国产一区二区三区最好精华液| 久久精品一区八戒影视| 成人亚洲一区二区一| 国产精品不卡在线| 欧美在线影院一区二区| 亚洲电影一区二区三区| 91精品婷婷国产综合久久竹菊| 免费在线看成人av| 久久这里都是精品| 99久久综合狠狠综合久久| 亚洲男人的天堂一区二区| 欧美在线视频全部完| 日韩精品1区2区3区| 精品国产欧美一区二区| 国产a精品视频| 一区二区视频在线| 91精品国产高清一区二区三区蜜臀| 麻豆中文一区二区| 国产精品女同互慰在线看| 色乱码一区二区三区88| 日韩中文字幕亚洲一区二区va在线| 日韩欧美第一区| 99精品国产热久久91蜜凸| 天天亚洲美女在线视频|