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

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

?? dataelement.java

?? java se平臺藍牙開發的插件 ,包括源碼 根據readme 生成包很多東西可以自己DIY很實用
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* Copyright 2004 Intel Corporation This file is part of Blue Cove. Blue Cove is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. Blue Cove 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 GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with Blue Cove; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package javax.bluetooth;import java.util.Enumeration;import java.util.Vector;public class DataElement {	/*	 * Defines data of type NULL. The value for data type DataElement.NULL is	 * implicit, i.e., there is no representation of it. Accordingly there is no	 * method to retrieve it, and attempts to retrieve the value will throw an	 * exception. The value of NULL is 0x00 (0).	 */	public static final int NULL = 0;	/*	 * Defines an unsigned integer of size one byte. The value of the constant	 * U_INT_1 is 0x08 (8).	 */	public static final int U_INT_1 = 8;	/*	 * Defines an unsigned integer of size two bytes. The value of the constant	 * U_INT_2 is 0x09 (9).	 */	public static final int U_INT_2 = 9;	/*	 * Defines an unsigned integer of size four bytes. The value of the constant	 * U_INT_4 is 0x0A (10).	 */	public static final int U_INT_4 = 10;	/*	 * Defines an unsigned integer of size eight bytes. The value of the	 * constant U_INT_8 is 0x0B (11).	 */	public static final int U_INT_8 = 11;	/*	 * Defines an unsigned integer of size sixteen bytes. The value of the	 * constant U_INT_16 is 0x0C (12).	 */	public static final int U_INT_16 = 12;	/*	 * Defines a signed integer of size one byte. The value of the constant	 * INT_1 is 0x10 (16).	 */	public static final int INT_1 = 16;	/*	 * Defines a signed integer of size two bytes. The value of the constant	 * INT_2 is 0x11 (17).	 */	public static final int INT_2 = 17;	/*	 * Defines a signed integer of size four bytes. The value of the constant	 * INT_4 is 0x12 (18).	 */	public static final int INT_4 = 18;	/*	 * Defines a signed integer of size eight bytes. The value of the constant	 * INT_8 is 0x13 (19).	 */	public static final int INT_8 = 19;	/*	 * Defines a signed integer of size sixteen bytes. The value of the constant	 * INT_16 is 0x14 (20).	 */	public static final int INT_16 = 20;	/*	 * Defines data of type URL. The value of the constant URL is 0x40 (64).	 */	public static final int URL = 64;	/*	 * Defines data of type UUID. The value of the constant UUID is 0x18 (24).	 */	public static final int UUID = 24;	/*	 * Defines data of type BOOL. The value of the constant BOOL is 0x28 (40).	 */	public static final int BOOL = 40;	/*	 * Defines data of type STRING. The value of the constant STRING is 0x20	 * (32).	 */	public static final int STRING = 32;	/*	 * Defines data of type DATSEQ. The service attribute value whose data has	 * this type must consider all the elements of the list, i.e. the value is	 * the whole set and not a subset. The elements of the set can be of any	 * type defined in this class, including DATSEQ. The value of the constant	 * DATSEQ is 0x30 (48).	 */	public static final int DATSEQ = 48;	/*	 * Defines data of type DATALT. The service attribute value whose data has	 * this type must consider only one of the elements of the set, i.e., the	 * value is the not the whole set but only one element of the set. The user	 * is free to choose any one element. The elements of the set can be of any	 * type defined in this class, including DATALT. The value of the constant	 * DATALT is 0x38 (56).	 */	public static final int DATALT = 56;	private Object value;	private int valueType;	/*	 * Creates a DataElement of type NULL, DATALT, or DATSEQ. Parameters:	 * valueType - the type of DataElement to create: NULL, DATALT, or DATSEQ	 * Throws: IllegalArgumentException - if valueType is not NULL, DATALT, or	 * DATSEQ See Also: NULL, DATALT, DATSEQ	 */	public DataElement(int valueType) {		switch (valueType) {		case NULL:			value = null;			break;		case DATALT:		case DATSEQ:			value = new Vector();			break;		default:			throw new IllegalArgumentException();		}		this.valueType = valueType;	}	/*	 * Creates a DataElement whose data type is BOOL and whose value is equal to	 * bool Parameters: bool - the value of the DataElement of type BOOL. See	 * Also: BOOL	 */	public DataElement(boolean bool) {		value = new Boolean(bool);		valueType = BOOL;	}	/*	 * Creates a DataElement that encapsulates an integer value of size U_INT_1,	 * U_INT_2, U_INT_4, INT_1, INT_2, INT_4, and INT_8. The legal values for	 * the valueType and the corresponding attribute values are: Value Type	 * Value Range U_INT_1 [0, 2^8-1] U_INT_2 [0, 2^16-1] U_INT_4 [0, 2^32-1]	 * INT_1 [-2^7, 2^7-1] INT_2 [-2^15, 2^15-1] INT_4 [-2^31, 2^31-1] INT_8	 * [-2^63, 2^63-1] All other pairings are illegal and will cause an	 * IllegalArgumentException to be thrown. Parameters: valueType - the data	 * type of the object that is being created; must be one of the following:	 * U_INT_1, U_INT_2, U_INT_4, INT_1, INT_2, INT_4, or INT_8 value - the	 * value of the object being created; must be in the range specified for the	 * given valueType Throws: IllegalArgumentException - if the valueType is	 * not valid or the value for the given legal valueType is outside the valid	 * range See Also: U_INT_1, U_INT_2, U_INT_4, INT_1, INT_2, INT_4, INT_8	 */	public DataElement(int valueType, long value) {		switch (valueType) {		case U_INT_1:			if (value < 0 || value > 0xff)				throw new IllegalArgumentException();			break;		case U_INT_2:			if (value < 0 || value > 0xffff)				throw new IllegalArgumentException();			break;		case U_INT_4:			if (value < 0 || value > 0xffffffffl)				throw new IllegalArgumentException();			break;		case INT_1:			if (value < -0x80 || value > 0x7f)				throw new IllegalArgumentException();			break;		case INT_2:			if (value < -0x8000 || value > 0x7fff)				throw new IllegalArgumentException();			break;		case INT_4:			if (value < -0x80000000 || value > 0x7fffffff)				throw new IllegalArgumentException();			break;		case INT_8:			break;		default:			throw new IllegalArgumentException();		}		this.value = new Long(value);		this.valueType = valueType;	}	/*	 * Creates a DataElement whose data type is given by valueType and whose	 * value is specified by the argument value. The legal values for the	 * valueType and the corresponding attribute values are: Value Type Java	 * Type / Value Range URL java.lang.String UUID javax.bluetooth.UUID STRING	 * java.lang.String INT_16 [-2127, 2127-1] as a byte array whose length must	 * be 16 U_INT_8 [0, 264-1] as a byte array whose length must be 8 U_INT_16	 * [0, 2128-1] as a byte array whose length must be 16 All other pairings	 * are illegal and would cause an IllegalArgumentException exception.	 * Parameters: valueType - the data type of the object that is being	 * created; must be one of the following: URL, UUID, STRING, INT_16,	 * U_INT_8, or U_INT_16 value - the value for the DataElement being created	 * of type valueType Throws: IllegalArgumentException - if the value is not	 * of the valueType type or is not in the range specified or is null See	 * Also: URL, UUID, STRING, U_INT_8, INT_16, U_INT_16	 */	public DataElement(int valueType, Object value) {		if (value == null)			throw new IllegalArgumentException();		switch (valueType) {		case URL:		case STRING:			if (!(value instanceof String))				throw new IllegalArgumentException();			break;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91小视频在线观看| 日韩美女视频一区二区| 色先锋久久av资源部| 国产中文字幕精品| 精品一区二区三区在线观看| 久久综合综合久久综合| 久久99国产精品久久99果冻传媒| 免费成人美女在线观看.| 日本欧美在线观看| 日本特黄久久久高潮| 日本特黄久久久高潮| 久久成人免费电影| 国产二区国产一区在线观看| av资源网一区| 在线观看免费视频综合| 欧美日韩你懂的| 91原创在线视频| 一本久久综合亚洲鲁鲁五月天 | 欧美一级一级性生活免费录像| 欧美日韩小视频| 精品国产自在久精品国产| 欧美国产一区在线| 夜色激情一区二区| 日本亚洲天堂网| 国产精品一二三| 一本到高清视频免费精品| 91麻豆精品国产无毒不卡在线观看 | 国产精品婷婷午夜在线观看| 亚洲欧美在线视频观看| 日日嗨av一区二区三区四区| 国产寡妇亲子伦一区二区| 91小视频在线观看| 欧美成人aa大片| 国产精品高潮呻吟| 美女视频一区二区| 91视频一区二区三区| 日韩一区二区视频| ㊣最新国产の精品bt伙计久久| 五月婷婷综合网| 成人av中文字幕| 欧美一区二区三区人| 亚洲丝袜美腿综合| 极品少妇xxxx偷拍精品少妇| 91丨九色丨尤物| 久久综合色天天久久综合图片| 亚洲精品免费一二三区| 黄网站免费久久| 欧美男女性生活在线直播观看| 久久久久一区二区三区四区| 午夜精品久久久久久久99水蜜桃| 国产二区国产一区在线观看| 欧美日韩电影一区| 亚洲精选视频在线| 成人免费精品视频| 久久奇米777| 日韩中文字幕91| 在线看不卡av| 国产精品成人一区二区三区夜夜夜| 伦理电影国产精品| 欧美午夜影院一区| 亚洲色图欧美激情| 成人ar影院免费观看视频| 精品国产精品一区二区夜夜嗨| 爽好多水快深点欧美视频| av亚洲精华国产精华| 久久久影院官网| 麻豆国产欧美一区二区三区| 欧美日韩国产一区二区三区地区| 亚洲免费av观看| eeuss国产一区二区三区| 国产精品蜜臀在线观看| 国产成人av自拍| 国产亚洲欧美一区在线观看| 国产综合一区二区| 日韩三级.com| 伦理电影国产精品| 久久亚洲二区三区| 国产毛片精品视频| 国产日产欧美一区| 国产一区二区在线观看免费| 国产日韩影视精品| 成人精品国产一区二区4080| 国产精品五月天| 91在线观看美女| 亚洲一区免费在线观看| 欧美日韩在线播放三区四区| 视频一区二区欧美| 久久综合九色综合97婷婷女人| 国产尤物一区二区| 国产精品久久久久久亚洲毛片 | 白白色 亚洲乱淫| 中文字幕在线免费不卡| 91日韩在线专区| 亚洲美女视频在线| 欧美丰满少妇xxxxx高潮对白 | 2024国产精品| 国产精品一区二区久久精品爱涩| 国产欧美精品一区二区色综合朱莉| 丁香桃色午夜亚洲一区二区三区| 国产精品美女久久久久久久久 | 亚洲图片自拍偷拍| 日韩欧美国产综合| 成人午夜激情视频| 亚洲一区二区三区美女| 欧美电影免费观看高清完整版| 国产一二精品视频| 亚洲精品国产a| 日韩午夜av一区| 99re在线视频这里只有精品| 亚洲丰满少妇videoshd| 精品欧美一区二区久久| 99久久久免费精品国产一区二区| 天堂蜜桃一区二区三区| 精品乱人伦一区二区三区| www.日本不卡| 免费一级片91| 亚洲一区二区三区中文字幕 | 午夜av一区二区| 国产午夜亚洲精品午夜鲁丝片| 欧美亚一区二区| 高清在线成人网| 久久精品72免费观看| 亚洲欧美视频在线观看视频| 欧美变态口味重另类| 色婷婷综合久久久| 国产成人aaaa| 奇米影视一区二区三区小说| 亚洲欧美aⅴ...| 久久精品男人天堂av| 欧美一级高清片| 色呦呦国产精品| 99免费精品视频| 成人午夜激情影院| 国产一区二区主播在线| 日韩精品一级二级| 亚洲在线观看免费视频| 中文字幕一区二区在线播放| 日韩视频123| 欧美一区二区啪啪| 欧美性猛交xxxx黑人交| 91天堂素人约啪| 9l国产精品久久久久麻豆| 国产福利一区在线| 免费在线观看成人| 免费成人av资源网| 午夜精品久久久久久久99水蜜桃| 亚洲综合一二三区| 自拍偷拍欧美精品| 亚洲日本在线天堂| 亚洲欧美乱综合| 国产精品国模大尺度视频| 久久精品免费在线观看| 久久免费美女视频| 久久精品夜色噜噜亚洲a∨| 久久欧美中文字幕| 国产日韩欧美不卡| 国产欧美一区二区精品婷婷| 日本一区二区高清| 久久精品一区二区三区四区| 欧美激情一区二区三区四区| 国产欧美一区二区精品久导航| 欧美高清在线精品一区| 亚洲青青青在线视频| 成人免费视频在线观看| 亚洲欧美日韩人成在线播放| 亚洲天堂福利av| 亚洲已满18点击进入久久| 亚洲乱码国产乱码精品精的特点 | 久久久久久久精| 欧美视频在线观看一区| 欧美性色黄大片手机版| 欧美精品乱码久久久久久| 91精品国产欧美日韩| 精品成人私密视频| 国产精品久久久久影院亚瑟| 亚洲欧美电影院| 秋霞影院一区二区| 国产精品66部| 91蝌蚪porny成人天涯| 欧美日本在线看| 久久久久久麻豆| 亚洲激情网站免费观看| 日本sm残虐另类| 成人av在线资源| 欧美美女网站色| 国产精品沙发午睡系列990531| 亚洲精品乱码久久久久久日本蜜臀| 午夜亚洲福利老司机| 精品写真视频在线观看| 99久久精品免费看| 欧美精品日韩综合在线| 国产日产亚洲精品系列| 亚洲曰韩产成在线| 久久精品国产77777蜜臀| 97se亚洲国产综合自在线观| 欧美一级高清大全免费观看| 国产精品成人免费在线| 免费人成黄页网站在线一区二区| 99视频超级精品| 91精品一区二区三区在线观看|