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

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

?? attributelist.java

?? java html 解析小程序,文件包很小
?? JAVA
字號:
/* * HTML Parser * Copyright (C) 1997 David McNicol * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * file COPYING for more details. */package cvu.html;import java.util.Hashtable;import java.util.Vector;import java.util.Enumeration;/** * This class represents the attribute list of an tag. * @see TagToken * @author <a href="http://www.strath.ac.uk/~ras97108/">David McNicol</a> */public class AttributeList {	private Hashtable list;	 // Stores the attributes.	public AttributeList () {		// Create a new hashtable to store the attributes.		list = new Hashtable();	}	/**	 * Returns the number of attributes currently defined.	 */	public int size () {		return list.size();	}	/**	 * Returns the value of the attribute with the specified name.	 * @param the name of the attribute.	 */	public String get (String name) {				// Check the name of the attribute is not null.		if (name == null) return null;		// Check that the attribute list is there.		if (list == null) return null;		// Return the value associated with the attribute name.		return (String) list.get(name.toLowerCase());	}	/**	 * Sets the attribute with the specified name to the specified	 * value. If the attribute already has a value it will be	 * overwritten.	 * @param name the name of the attribute.	 * @param value the new value of the attribute.	 */	public void set (String name, String value) {		// Check that the name is not null.		if (name == null) return;		// Replace a null value with an empty string.		if (value == null) value = "";		// Return if the list of attributes is not defined.		if (list == null) return;		// Otherwise, add the attribute and value to the list.		list.put(name.toLowerCase(), value);	}	/**	 * Returns true if the specified attribute name exists within	 * the list.	 * @param the name of the attribute to check.	 */	public boolean exists (String name) {		// Return false if the name is not null.		if (name == null) return false;		// Return false of the list is not defined.		if (list == null) return false;		// Check the list to see if the attribute exists.		return list.containsKey(name.toLowerCase());	}	/**	 * Removes the specified attribute from the list.	 * @param name the name of the attribue to remove.	 */	public void unset (String name) {		// Return if the attribute name is null.		if (name == null) return;		// Return if the attribute list is not defined.		if (list == null) return;		// Otherwise, remove the attribute from the list.		list.remove(name.toLowerCase());	}	/**	 * Returns an enumeration of defined attributes.	 */	public Enumeration names () {		// Check that the attribute table has been defined.		if (list == null) return null;		// Return an enumeration of all of the defined attributes.		return list.keys();	}	/**	 * Returns an attribute with all double quote characters	 * escaped with a backslash.	 * @param name the name of the attribute.	 */	public String getQuoted (String name) {		String value;	     // Stores the value of the attribute.		char[] array;	     // Character array from 'value'.		StringBuffer quoted; // Stores the quoted version of the value.		int i;		     // Loop variable.		// Check the name of the attribute is not null.		if (name == null) return null;		// Check that the attribute list is there.		if (list == null) return null;		// Get the value of the attribute.		value = (String) list.get(name.toLowerCase());		// Return nothing if there is no such attribute.		if (value == null) return null;		// Return an empty string if that is what is stored.		if (value.length() == 0) return "";		// Convert the value into a character array.		array = value.toCharArray();		// Create a new StringBuffer to store the quoted value.		quoted = new StringBuffer(array.length);		// Loop round the characters in the array.		for (i = 0; i < array.length; i++) {			// Escape any quotation marks.			if (array[i] == '"') {				quoted.append("\\\"");				continue;			}			// Escape any additional backslash characters.			if (array[i] == '\\') {				quoted.append("\\\\");				continue;			}			// Otherwise append the character without an escape.			quoted.append(array[i]);		}		// Return a string version of the buffer.		return quoted.toString();	}	/**	 * Returns a string version of the attribute and its value.	 * @param name the name of the attribute.	 */	public String toString (String name) {		String value; // The value of the attribute.		// Return an empty string if the name is null.		if (name == null) return "";		// Return an empty string if the attribute is not defined.		if (! exists(name)) return "";		// Get a quoted version of the value.		value = getQuoted(name);		// If the value is null return the attribute name by itself.		if (value == null) return name;		// Otherwise return the complete string.		if (value.length() > 0)			return name + "=\"" + value + '"';		else			return name;	}	/**	 * Returns a string version of the attribute list.	 */	public String toString () {		StringBuffer buffer;  // Stores the string version of the list.		Enumeration nameList; // Stores a list of attribute names.		String name;	      // Name of the current attribute.		String attr;	      // String version of a single attribute.		// Create a new StringBuffer.		buffer = new StringBuffer();		// Get a list of all of the attribute names.		nameList = names();		while (nameList.hasMoreElements()) {			// Get the next attribute name from the list.			name = (String) nameList.nextElement();			// Get the string version of the attribute.			attr = toString(name);			// Add it to the buffer.			buffer.append(attr);			// Add whitespace if there are more attributes.			if (nameList.hasMoreElements())				buffer.append(' ');		}		// Return a string version of the buffer.		return buffer.toString();	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲影院久久精品| 国产成人精品亚洲午夜麻豆| 韩国欧美国产一区| 97久久超碰精品国产| 欧美va亚洲va在线观看蝴蝶网| 1000精品久久久久久久久| 麻豆久久久久久久| 欧美亚洲国产一卡| 亚洲日本在线天堂| 国产麻豆精品95视频| 日韩一区二区三区在线| 亚洲视频图片小说| 成人av网址在线| 国产亚洲精品中文字幕| 久久99国产乱子伦精品免费| 欧美日韩亚洲另类| 一区二区三区中文在线观看| 成人av影院在线| 国产亚洲精品精华液| 韩国精品一区二区| 国产精品视频麻豆| 日本视频一区二区| 5566中文字幕一区二区电影| 欧美经典三级视频一区二区三区| 免费观看一级特黄欧美大片| 粉嫩蜜臀av国产精品网站| 亚洲国产乱码最新视频| 久久免费午夜影院| 欧洲av一区二区嗯嗯嗯啊| 蜜臀a∨国产成人精品| 欧美国产欧美亚州国产日韩mv天天看完整| 97久久精品人人做人人爽 | 欧美一二三区在线| 国产高清无密码一区二区三区| 亚洲精品日日夜夜| 亚洲精品一区二区三区在线观看 | 在线观看亚洲专区| 久久超碰97中文字幕| 依依成人精品视频| 欧美mv和日韩mv的网站| 国产99久久久国产精品潘金 | 日韩一区二区三区av| 粉嫩在线一区二区三区视频| 日日噜噜夜夜狠狠视频欧美人| 国产欧美一区二区精品婷婷 | 日韩欧美国产一二三区| 播五月开心婷婷综合| 另类的小说在线视频另类成人小视频在线 | 亚洲综合视频在线观看| 久久午夜老司机| 欧美肥妇bbw| 色呦呦网站一区| 国产不卡在线视频| 加勒比av一区二区| 五月婷婷欧美视频| 夜夜揉揉日日人人青青一国产精品| 日韩欧美高清一区| 91精选在线观看| 成人av在线网站| 8x8x8国产精品| 成年人国产精品| 另类小说色综合网站| 亚洲一区在线看| 日韩码欧中文字| 欧美国产97人人爽人人喊| 精品国产乱码久久久久久1区2区 | 老司机精品视频导航| 一区二区三区产品免费精品久久75| 国产欧美一区二区三区鸳鸯浴| 欧美日本韩国一区| 在线观看成人免费视频| 91网站在线观看视频| 97精品超碰一区二区三区| 成人免费三级在线| 成人动漫一区二区三区| 懂色av中文一区二区三区| 国产风韵犹存在线视精品| 国产精品综合一区二区三区| 黄色日韩三级电影| 日韩欧美一级片| 精品视频一区二区三区免费| 97se亚洲国产综合自在线观| 成人午夜av在线| 国产·精品毛片| 99国内精品久久| eeuss国产一区二区三区| 粉嫩高潮美女一区二区三区 | 国产日韩欧美精品一区| 久久久影院官网| 欧美激情资源网| 亚洲欧洲日韩一区二区三区| 亚洲免费观看高清完整版在线观看| 国产精品久久久久久久久快鸭| 中文字幕一区二区三区乱码在线| 亚洲免费毛片网站| 亚洲成va人在线观看| 蜜桃精品视频在线观看| 韩国v欧美v亚洲v日本v| 成人手机电影网| 91视频在线观看免费| 欧美日韩国产片| 亚洲伊人伊色伊影伊综合网| 亚洲自拍偷拍av| 黄色日韩三级电影| 成人午夜视频在线观看| 91成人国产精品| 欧美精品777| 日韩一区中文字幕| 一区二区欧美国产| 日韩高清不卡在线| 丁香六月综合激情| 成人免费毛片嘿嘿连载视频| 欧美日韩一区 二区 三区 久久精品| 正在播放一区二区| 精品国产乱码久久久久久闺蜜| 精品国一区二区三区| 亚洲综合一二三区| 国产最新精品精品你懂的| 一级特黄大欧美久久久| 日韩精品电影在线| 久久精品国产99久久6| 成人高清免费在线播放| 欧美撒尿777hd撒尿| 欧美精品一区二区在线观看| 夜夜精品视频一区二区| 国产乱对白刺激视频不卡| 欧美在线制服丝袜| 日本一区二区三级电影在线观看| 五月婷婷另类国产| 99精品欧美一区二区三区小说| 欧美一级专区免费大片| 亚洲女同一区二区| 国产精品一区二区无线| 欧美日韩国产电影| 亚洲视频中文字幕| 国产一区二区在线看| 88在线观看91蜜桃国自产| 亚洲欧洲www| 国产自产2019最新不卡| 欧美疯狂做受xxxx富婆| 中文字幕中文字幕一区二区| 精品亚洲porn| 国产精品一区二区无线| 日韩电影一区二区三区| voyeur盗摄精品| 精品久久久久久久久久久久包黑料| 一级女性全黄久久生活片免费| 成人一区在线看| 精品久久久网站| 久久成人免费电影| 欧美日韩1234| 亚洲成人久久影院| 色拍拍在线精品视频8848| 国产精品欧美久久久久一区二区 | 欧美午夜精品一区二区蜜桃| 国产精品国产三级国产有无不卡| 国产精品自在欧美一区| 亚洲精品在线观| 精品一二三四区| 日韩限制级电影在线观看| 日日夜夜一区二区| 欧美最猛性xxxxx直播| 亚洲另类春色校园小说| 日本韩国欧美三级| 1024精品合集| 在线亚洲+欧美+日本专区| 亚洲欧美日韩中文字幕一区二区三区 | 欧美三片在线视频观看| 中文字幕一区二区三区av| 高清不卡一区二区| 日韩欧美一区在线| 久久精品国产免费| 欧美xxxxx牲另类人与| 九色综合狠狠综合久久| 精品久久久网站| 国产精品一卡二卡| 国产精品美女久久久久aⅴ| 99免费精品视频| 亚洲摸摸操操av| 欧美色中文字幕| 日韩av一区二| 精品久久国产97色综合| 懂色av一区二区在线播放| 欧美经典一区二区三区| 不卡的看片网站| 一区二区三区高清不卡| 91精品免费观看| 国产精品亚洲人在线观看| 亚洲婷婷国产精品电影人久久| 日本道色综合久久| 日韩精品午夜视频| 久久亚洲捆绑美女| 色哟哟国产精品| 亚洲成人免费影院| 国产欧美日本一区二区三区| 国产精品99久久久久久宅男| 亚洲日本一区二区| 精品视频在线免费看| 麻豆freexxxx性91精品| 欧美激情一区二区三区蜜桃视频 |