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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? htmlwriter.java

?? Examples From Java Examples in a Nutshell, 2nd Edition 書中的源碼
?? 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(); }    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费观看在线综合| 国产精品入口麻豆原神| 偷偷要91色婷婷| 欧美艳星brazzers| 亚洲成a人片在线观看中文| 色网站国产精品| 亚洲资源在线观看| 69堂亚洲精品首页| 国产一区久久久| 欧美国产禁国产网站cc| 色婷婷激情一区二区三区| 亚洲综合久久久| 欧美丰满美乳xxx高潮www| 麻豆一区二区在线| 久久久精品中文字幕麻豆发布| 高清不卡一区二区| 亚洲视频在线一区| 欧美日韩亚洲综合一区| 免费黄网站欧美| 国产欧美精品在线观看| 91麻豆文化传媒在线观看| 亚洲成av人片一区二区三区| 欧美一区二区三区四区久久| 黄色小说综合网站| 亚洲日本在线天堂| 日韩视频一区二区三区在线播放 | 91丝袜美女网| 日韩二区三区在线观看| 久久久综合精品| 日本久久电影网| 精品制服美女久久| 亚洲视频电影在线| 欧美岛国在线观看| 99视频热这里只有精品免费| 亚洲成av人片| 中文在线一区二区| 日韩一区二区高清| 91网上在线视频| 国产一区二区三区久久久| 中文字幕亚洲在| 欧美一级一区二区| 成人午夜在线免费| 国产一区二区三区四区五区入口 | 亚洲免费三区一区二区| 欧美日韩亚洲国产综合| 激情六月婷婷久久| 亚洲精品成a人| 日韩一区国产二区欧美三区| 国产不卡一区视频| 日本一区二区免费在线观看视频 | 免费观看30秒视频久久| 精品国产青草久久久久福利| 成人午夜在线视频| 日韩成人免费看| 中文字幕一区免费在线观看| 欧美精品乱码久久久久久按摩| 国产在线精品一区二区夜色| 亚洲欧美激情视频在线观看一区二区三区| 91在线观看成人| 三级久久三级久久| 亚洲精品视频在线观看网站| 欧美成人三级在线| 在线精品亚洲一区二区不卡| 国产米奇在线777精品观看| 亚洲国产成人va在线观看天堂| 国产婷婷色一区二区三区在线| 欧美三级日韩三级国产三级| 成人短视频下载| 激情久久久久久久久久久久久久久久| 亚洲乱码中文字幕| 欧美极品美女视频| 精品福利二区三区| 在线播放视频一区| 欧美天堂一区二区三区| 国产美女视频一区| 亚洲成人资源在线| 综合中文字幕亚洲| 国产亚洲精品精华液| 在线观看视频欧美| 色综合久久天天综合网| 大白屁股一区二区视频| 韩国v欧美v日本v亚洲v| 日韩精品乱码免费| 欧美激情综合五月色丁香| 自拍视频在线观看一区二区| 久久亚洲欧美国产精品乐播| 日韩三级.com| 欧美区一区二区三区| 在线观看亚洲精品| 色拍拍在线精品视频8848| 波波电影院一区二区三区| 成人午夜视频网站| 成人丝袜视频网| 成人av资源站| 91麻豆自制传媒国产之光| eeuss国产一区二区三区| 国产aⅴ综合色| 国产麻豆欧美日韩一区| 国产精品123区| 国产成人午夜精品影院观看视频| 久久国内精品自在自线400部| 日本怡春院一区二区| 亚洲一区二区av电影| 亚洲一区二区综合| 亚洲大片精品永久免费| 成人欧美一区二区三区在线播放| 一区二区三区四区av| 香蕉影视欧美成人| 日韩av一区二区三区四区| 日韩高清不卡在线| 久久成人免费网| 国产精品99久久久| 99精品视频在线免费观看| 一本到高清视频免费精品| 欧美图区在线视频| 91精品国产综合久久福利软件| 3d成人动漫网站| 欧美日韩一区视频| 久久久精品天堂| 亚洲三级电影全部在线观看高清| 亚洲高清视频的网址| 蜜臀av性久久久久蜜臀av麻豆| 国产麻豆精品视频| 97久久超碰国产精品| 欧美日本在线一区| 久久这里只有精品视频网| 国产精品美女久久久久aⅴ国产馆| 综合自拍亚洲综合图不卡区| 午夜成人在线视频| 精品一区二区三区久久久| 国产伦精品一区二区三区免费迷 | 国产精品久久久久久久浪潮网站| 一区二区三区美女| 激情综合网最新| 91麻豆国产福利精品| 欧美一区二区三区人| 欧美激情在线看| 婷婷开心激情综合| 国产精品亚洲一区二区三区在线| 欧美三级电影网站| 久久精子c满五个校花| 亚洲一区二区三区在线播放| 久久99国内精品| 91麻豆精东视频| 久久综合久久久久88| 亚洲精品国产无套在线观| 麻豆专区一区二区三区四区五区| av动漫一区二区| 日韩三级在线观看| 亚洲综合视频在线观看| 国产精品99久久久久久似苏梦涵| jlzzjlzz亚洲日本少妇| 欧美一级日韩一级| 偷拍与自拍一区| av不卡免费在线观看| 欧美成人精品二区三区99精品| 久久99国产精品成人| 色综合视频在线观看| 久久综合成人精品亚洲另类欧美| 亚洲国产一区二区视频| 成人高清视频免费观看| 日韩欧美国产精品| 亚洲成人福利片| 91丨porny丨户外露出| 日韩免费高清av| 秋霞av亚洲一区二区三| 在线观看一区日韩| 综合久久久久久| 国产成人亚洲综合色影视| 欧美成人一区二区三区| 日日夜夜精品免费视频| 在线欧美日韩国产| 亚洲女人的天堂| 99这里都是精品| 国产精品乱码一区二三区小蝌蚪| 麻豆91在线观看| 欧美日韩激情一区| 亚洲综合一区二区| 色偷偷一区二区三区| 国产精品色呦呦| 成人av电影观看| 国产精品女主播av| 成人伦理片在线| 国产精品蜜臀av| 成人视屏免费看| 最新成人av在线| 99re视频这里只有精品| 亚洲欧洲av一区二区三区久久| 精品一区二区三区香蕉蜜桃| 日韩久久久精品| 精品亚洲国产成人av制服丝袜| 日韩欧美成人一区| 久久超级碰视频| 2024国产精品| 粉嫩欧美一区二区三区高清影视| 久久久久久久久久久黄色| 国产一区二区三区电影在线观看| 久久精品免费在线观看| 成人av影视在线观看| 国产精品久久久久久久久动漫|