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

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

?? node.java

?? J2me自動登錄的例子 就是自動登陸的
?? JAVA
字號:
/* kXML * * The contents of this file are subject to the Enhydra Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License * on the Enhydra web site ( http://www.enhydra.org/ ). * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See * the License for the specific terms governing rights and limitations * under the License. * * The Initial Developer of kXML is Stefan Haustein. Copyright (C) * 2000, 2001 Stefan Haustein, D-46045 Oberhausen (Rhld.), * Germany. All Rights Reserved. * * Contributor(s): Paul Palaszewski, Wilhelm Fitzpatrick,  *                 Eric Foster-Johnson, Hans-Harald Schulz * * */package org.kxml.kdom;import java.util.*;import java.io.*;import org.kxml.*;import org.kxml.io.*;import org.kxml.parser.*;/** A common base class for Document and Element, also used for    storing XML fragments. */public class Node implements XmlIO{    protected Vector children;    protected StringBuffer types;    /** inserts the given child object of the given type at the	given index. */    public void addChild (int index, int type, Object child) {	if (child == null) 	    throw new NullPointerException ();	if (children == null) {	    children = new Vector ();	    types = new StringBuffer ();	}	if (type == Xml.ELEMENT) {	    if (!(child instanceof Element)) 		throw new RuntimeException ("Element obj expected)");	    				 	    ((Element) child).setParent (this);	}	else if (!(child instanceof String)) 	    throw new RuntimeException ("String expected");	children.insertElementAt (child, index);	types.insert (index, (char) type);    }    /** convenience method for addChild (getChildCount (), child) */    public void addChild (int type, Object child) {	addChild (getChildCount (), type, child);    }    /** Builds a default element with the given properties. Elements	should always be created using this method instead of the	constructor in order to enable construction of specialized	subclasses by deriving custom Document classes. Please note:	For no namespace, please use Xml.NO_NAMESPACE, null is not a	legal value. Currently, null is converted to Xml.NO_NAMESPACE,	but future versions may throw an exception. */    public Element createElement (String namespace, String name) {       	Element e = new Element ();	e.namespace = namespace == null ? Xml.NO_NAMESPACE : namespace;	e.name = name;	return e;    }    /** Returns the child object at the given index.  For child        elements, an Element object is returned. For all other child        types, a String is returned. */    public Object getChild (int index) {	return children.elementAt (index);    }    /** Returns the number of child objects */        public int getChildCount () {	return children == null ? 0 : children.size ();    }    /** returns the element at the given index. If the node at the	given index is a text node, null is returned */    public Element getElement (int index) {	Object child = getChild (index);	return (child instanceof Element) ? (Element) child : null;    }        /** Convenience method for getElement (getNamespace (), name). */	    public Element getElement (String name) {        return getElement (getNamespace (), name);    }   /** Returns the element with the given namespace and name. If the       element is not found, or more than one matching elements are       found, an exception is thrown. */    public Element getElement (String namespace, String name) {	int i = indexOf (namespace, name, 0);	int j = indexOf (namespace, name, i+1);	if (i == -1 || j != -1) throw new RuntimeException 	    ("Element {"+namespace+"}" + name 	     + (i == -1 ? " not found in " : " more than once in ") + getName ());	return getElement (i);    }    /** returns "#document-fragment". For elements, the element name is returned */    public String getName () {	return "#document-fragment";    }    /** Returns the namespace of the current element. For Node        and Document, Xml.NO_NAMESPACE is returned. */    public String getNamespace () {	return Xml.NO_NAMESPACE;    }    /** returns the text content if the element has text-only	content. Throws an exception for mixed content */    public String getText () {		StringBuffer buf = new StringBuffer (); 	int len = getChildCount ();		for (int i = 0; i < len; i++) {	    if ((getType (i) & (Xml.TEXT | Xml.WHITESPACE)) != 0) 		buf.append (getText (i));	    else if (getType (i) == Xml.ELEMENT) 		throw new RuntimeException ("not text-only content!");	}	return buf.toString ();    }    /** Returns the text node with the given index or null if the node	with the given index is not a text node. */        public String getText (int index) {	return (getType (index) & (Xml.TEXT|Xml.WHITESPACE)) != 0  	    ? (String) getChild (index)	    : null;    }    /** Returns the type of the child at the given index. Possible 	types are ELEMENT, TEXT, COMMENT, and PROCESSING_INSTRUCTION */    public int getType (int index) {	return types.charAt (index);    }				      /** Convenience method for indexOf (getNamespace (), name,        startIndex). */    public int indexOf (String name, int startIndex) {	return indexOf (getNamespace (), name, startIndex);    }	    /** Performs search for an element with the given namespace and	name, starting at the given start index. A null namespace	matches any namespace, please use Xml.NO_NAMESPACE for no	namespace).  returns -1 if no matching element was found. */    public int indexOf (String namespace, String name, int startIndex) {	int len = getChildCount ();		for (int i = startIndex; i < len; i++) {	    Element child = getElement (i);	    if (child != null 		&& name.equals (child.getName ())		&& (namespace == null || namespace.equals (child.getNamespace ())))		return i;	}	return -1;    }    /** Recursively builds the child elements from the given parser	until an end tag or end document is found.         The end tag is not consumed. */    public void parse (AbstractXmlParser parser) throws IOException {		boolean leave = false;	do {	    ParseEvent event = parser.peek ();	    switch (event.getType ()) {	    case Xml.START_TAG: 		{		    Element child = createElement 			(event.getNamespace (), event.getName ());		    child.setAttributes (event.getAttributes ());		    addChild (Xml.ELEMENT, child);		    // order is important here since 		    // setparent may perform some init code!		    		    child.parse (parser);		    break;		}	    case Xml.END_DOCUMENT:	    case Xml.END_TAG:		leave = true;		break;	    default: 		addChild (event.getType (), event.getText ());		parser.read ();	    }	}	while (!leave);    }    /** Removes the child object at the given index */    public void removeChild (int idx) {	children.removeElementAt (idx);	/***  Modification by HHS - start ***/	//      types.deleteCharAt (index);	/***/	int n = types.length()-1;		for(int i = idx; i < n; i++)	    types.setCharAt(i, types.charAt(i + 1));	    	types.setLength(n);		/***  Modification by HHS - end   ***/    }   /** returns a valid XML representation of this Element including	attributes and children. */    public String toString () {	try {	    ByteArrayOutputStream bos = new ByteArrayOutputStream ();	    XmlWriter xw = new XmlWriter (new OutputStreamWriter (bos));	    write (xw);	    xw.close ();	    return new String (bos.toByteArray ());	}	catch (IOException e) {	    throw new RuntimeException (e.toString ());	}    }    /** Writes this node to the given XmlWriter. For node and document,        this method is identical to writeChildren, except that the        stream is flushed automatically. */    public void write (AbstractXmlWriter writer) throws IOException {	writeChildren (writer);	writer.flush ();    }    /** Writes the children of this node to the given XmlWriter. */    public void writeChildren (AbstractXmlWriter writer) throws IOException {	if (children == null) return;	int len = children.size ();	for (int i = 0; i < len; i++) {	    int type = getType (i);	    Object child = children.elementAt (i);	    switch (type) {	    case Xml.ELEMENT:		((Element) child).write (writer);		break;	    case Xml.TEXT:	    case Xml.WHITESPACE:		writer.write ((String) child);		break;	    default:		writer.writeLegacy (type, (String) child);	    }	}    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美国产激情二区三区| 欧美一区二区三区视频在线 | 久久男人中文字幕资源站| 琪琪一区二区三区| 日韩精品中午字幕| 国产成人综合在线| 国产精品福利影院| 欧美在线|欧美| 免费高清视频精品| 欧美国产精品一区二区三区| av在线一区二区| 亚洲午夜视频在线观看| 欧美一区二区三区视频在线| 国产精品影视在线| 一区免费观看视频| 欧美三级乱人伦电影| 免费不卡在线视频| 国产精品网站一区| 欧美网站一区二区| 国产美女久久久久| 亚洲精品视频一区二区| 欧美大片免费久久精品三p| 国产v综合v亚洲欧| 亚洲国产欧美日韩另类综合| 亚洲精品一区二区三区在线观看| 盗摄精品av一区二区三区| 一区二区三区国产精华| 久久影视一区二区| 在线观看亚洲一区| 国产一区二区美女诱惑| 亚洲精品国产一区二区精华液 | zzijzzij亚洲日本少妇熟睡| 亚洲已满18点击进入久久| 欧美变态tickling挠脚心| 91视频一区二区| 国产一区欧美二区| 五月综合激情日本mⅴ| 国产视频一区在线播放| 欧美日韩亚洲综合在线 | 国产成人一区二区精品非洲| 亚洲国产一区视频| 中文欧美字幕免费| 日韩精品一区二区三区视频| 色婷婷综合激情| 国产精品911| 日韩不卡一二三区| 亚洲永久精品国产| 《视频一区视频二区| 久久久久久免费毛片精品| 欧美日韩国产免费| 93久久精品日日躁夜夜躁欧美| 老司机午夜精品| 亚洲国产成人91porn| 亚洲视频 欧洲视频| 国产亚洲成av人在线观看导航| 制服丝袜成人动漫| 欧美色精品在线视频| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 久久久影院官网| 国产精品一区二区在线观看不卡 | 成人亚洲精品久久久久软件| 欧美美女直播网站| 99re66热这里只有精品3直播 | 欧美视频日韩视频| 成人福利视频网站| 美日韩一区二区三区| 亚洲一区二区欧美| 亚洲美女视频在线| 18欧美乱大交hd1984| 国产精品久久午夜| 中文字幕精品一区二区三区精品| 精品国产一区二区三区av性色| 欧美日韩三级视频| 91黄色在线观看| 欧美在线观看一区二区| 欧美亚洲高清一区| 欧美三级日韩三级| 91精品国产麻豆国产自产在线| 欧美猛男男办公室激情| 欧美男人的天堂一二区| 91麻豆精品91久久久久同性| 777精品伊人久久久久大香线蕉| 色美美综合视频| 91麻豆蜜桃一区二区三区| 99综合电影在线视频| 99久久国产综合精品麻豆| 成人手机电影网| 97aⅴ精品视频一二三区| 在线视频观看一区| 欧美日韩国产高清一区| 91精品国产综合久久婷婷香蕉| 欧美久久久久免费| 精品国产一区二区三区四区四| 久久久高清一区二区三区| 国产日韩欧美不卡在线| 国产精品视频线看| 自拍偷拍国产亚洲| 亚洲永久免费av| 免费成人结看片| 大白屁股一区二区视频| 激情六月婷婷久久| 国产v综合v亚洲欧| 国产mv日韩mv欧美| 欧美日韩中字一区| 欧美主播一区二区三区美女| 91成人在线精品| 欧美性欧美巨大黑白大战| 欧美伊人久久久久久久久影院 | 99re视频这里只有精品| 紧缚奴在线一区二区三区| 国产在线精品一区二区夜色| 国产成人综合精品三级| 成人精品一区二区三区四区| 欧洲av一区二区嗯嗯嗯啊| 久久久亚洲精华液精华液精华液 | 免费不卡在线观看| 风间由美性色一区二区三区| 色视频成人在线观看免| 日韩一区二区三区视频| 久久精品人人做人人综合| 一区二区三区欧美视频| 欧美a级一区二区| 成人av影院在线| 日韩欧美中文字幕精品| 中文字幕一区二区三区精华液| 亚洲精品免费看| 国产精品自拍网站| 欧美三级一区二区| 丝袜国产日韩另类美女| 久久亚洲精品小早川怜子| 成人aa视频在线观看| 亚洲国产精品成人综合| 成人一区二区三区| 久久久久国色av免费看影院| 日韩专区一卡二卡| 国产传媒日韩欧美成人| 久久综合av免费| 99精品久久只有精品| 国产精品中文有码| 欧美狂野另类xxxxoooo| 中文字幕不卡在线| 日韩一区二区三区在线观看| 国产一二三精品| 欧美精品一卡二卡| 久久99热99| 亚洲国产成人av网| 亚洲不卡av一区二区三区| 国产在线精品一区二区不卡了 | 亚洲人成亚洲人成在线观看图片| 美女视频免费一区| 亚洲香蕉伊在人在线观| 欧美精品一区二区三区蜜桃| 亚洲线精品一区二区三区八戒| 欧美日韩一区二区三区四区 | 99re视频这里只有精品| 丰满亚洲少妇av| 久久嫩草精品久久久精品一| 极品美女销魂一区二区三区 | 午夜国产精品一区| 中文字幕免费不卡| 精品噜噜噜噜久久久久久久久试看| 国产激情一区二区三区| 久久精品国产亚洲aⅴ| 夜夜爽夜夜爽精品视频| 亚洲日穴在线视频| 亚洲国产精品黑人久久久| 日韩欧美国产一二三区| 日韩欧美不卡在线观看视频| 91精品欧美久久久久久动漫| 一本到不卡免费一区二区| 久久不见久久见免费视频7| 婷婷开心久久网| 精品一区二区在线视频| 美美哒免费高清在线观看视频一区二区 | 欧美精品自拍偷拍动漫精品| 91美女在线视频| 欧美日韩一区小说| 成人动漫中文字幕| 色先锋aa成人| 欧美高清视频不卡网| 日韩区在线观看| 国产情人综合久久777777| 久久综合九色综合97婷婷女人| 91麻豆精品国产无毒不卡在线观看| 欧美日韩一区久久| 久久综合狠狠综合| 国产精品理论在线观看| 3d成人动漫网站| 欧美一区二区三区在线| 欧美韩日一区二区三区| 亚洲成人av一区二区三区| 久久97超碰色| 欧美色区777第一页| 国产欧美一区二区精品久导航 | 欧美日韩高清一区| 久久人人爽爽爽人久久久| 国产精品对白交换视频| 日韩美女天天操| 洋洋av久久久久久久一区| 国产在线视频一区二区|