⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 btserviceclass.java

📁 BTBrowser,用JAVA API实现蓝牙通信.
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
	 * Defines the <code>Handsfree</code> short UUID value.
	 * <p>
	 * <code>HANDSFREE</code> is set to the constant value 0x111E.
	 */
	public static final int HANDSFREE = 0x111E;
	/**
	 * Defines the <code>HandsfreeAudioGateway</code> short UUID value.
	 * <p>
	 * <code>HANDSFREEAUDIOGATEWAY</code> is set to the constant value 0x111F.
	 */
	public static final int HANDSFREEAUDIOGATEWAY = 0x111F;
	/**
	 * Defines the <code>DirectPrintingReferenceObjectsService</code> short
	 * UUID value.
	 * <p>
	 * <code>DIRECTPRINTINGREFERENCEOBJECTSSERVICE</code> is set to the
	 * constant value 0x1120.
	 */
	public static final int DIRECTPRINTINGREFERENCEOBJECTSSERVICE = 0x1120;
	/**
	 * Defines the <code>ReflectedUI</code> short UUID value.
	 * <p>
	 * <code>REFLECTEDUI</code> is set to the constant value 0x1121.
	 */
	public static final int REFLECTEDUI = 0x1121;
	/**
	 * Defines the <code>BasicPrinting</code> short UUID value.
	 * <p>
	 * <code>BASICPRINTING</code> is set to the constant value 0x1122.
	 */
	public static final int BASICPRINTING = 0x1122;
	/**
	 * Defines the <code>PrintingStatus</code> short UUID value.
	 * <p>
	 * <code>PRINTINGSTATUS</code> is set to the constant value 0x1123.
	 */
	public static final int PRINTINGSTATUS = 0x1123;
	/**
	 * Defines the <code>HumanInterfaceDeviceService</code> short UUID value.
	 * <p> * <code>HUMANINTERFACEDEVICESERVICE</code> is set to the constant
	 * value 0x1124.
	 */
	public static final int HUMANINTERFACEDEVICESERVICE = 0x1124;
	/**
	 * Defines the <code>HardcopyCableReplacement</code> short UUID value.
	 * <p>
	 * <code>HARDCOPYCABLEREPLACEMENT</code> is set to the constant value
	 * 0x1125.
	 */
	public static final int HARDCOPYCABLEREPLACEMENT = 0x1125;
	/**
	 * Defines the <code>HCR_Print</code> short UUID value.
	 * <p>
	 * <code>HCR_PRINT</code> is set to the constant value 0x1126.
	 */
	public static final int HCR_PRINT = 0x1126;
	/**
	 * Defines the <code>HCR_Scan</code> short UUID value.
	 * <p>
	 * <code>HCR_SCAN</code> is set to the constant value 0x1127.
	 */
	public static final int HCR_SCAN = 0x1127;

	/**
	 * Defines the <code>Common_ISDN_Access</code> short UUID value.
	 * <p>
	 * <code>COMMON_ISDN_ACCESS</code> is set to the constant value 0x1128.
	 */
	public static final int COMMON_ISDN_ACCESS = 0x1128;
	/**
	 * Defines the <code>VideoConferencingGW</code> short UUID value.
	 * <p>
	 * <code>VIDEOCONFERENCINGGW</code> is set to the constant value 0x1129.
	 */
	public static final int VIDEOCONFERENCINGGW = 0x1129;
	/**
	 * Defines the <code>UDI_MT</code> short UUID value.
	 * <p>
	 * <code>UDI_MT</code> is set to the constant value 0x112A.
	 */
	public static final int UDI_MT = 0x112A;
	/**
	 * Defines the <code>UDI_TA</code> short UUID value.
	 * <p>
	 * <code>UDI_TA</code> is set to the constant value 0x112B.
	 */
	public static final int UDI_TA = 0x112B;

	/**
	 * Defines the <code>Audio_Video</code> short UUID value.
	 * <p>
	 * <code>AUDIO_VIDEO</code> is set to the constant value 0x112C.
	 */
	public static final int AUDIO_VIDEO = 0x112C;
	/**
	 * Defines the <code>SIM_Access</code> short UUID value.
	 * <p>
	 * <code>SIM_ACCESS</code> is set to the constant value 0x112D.
	 */
	public static final int SIM_ACCESS = 0x112D;
	/**
	 * * Defines the <code>PnPInformation</code> short UUID value.
	 * <p>
	 * <code>PNPINFORMATION</code> is set to the constant value 0x1200.
	 */
	public static final int PNPINFORMATION = 0x1200;
	/**
	 * Defines the <code>GenericNetworking</code> short UUID value.
	 * <p>
	 * <code>GENERICNETWORKING</code> is set to the constant value 0x1201.
	 */
	public static final int GENERICNETWORKING = 0x1201;
	/**
	 * Defines the <code>GenericFileTransfer</code> short UUID value.
	 * <p>
	 * <code>GENERICFILETRANSFER</code> is set to the constant value 0x1202.
	 */
	public static final int GENERICFILETRANSFER = 0x1202;
	/**
	 * Defines the <code>GenericAudio</code> short UUID value.
	 * <p>
	 * <code>GENERICAUDIO</code> is set to the constant value 0x1203.
	 */
	public static final int GENERICAUDIO = 0x1203;

	/**
	 * Defines the <code>GenericTelephony</code> short UUID value.
	 * <p>
	 * <code>GENERICTELEPHONY</code> is set to the constant value 0x1204.
	 */
	public static final int GENERICTELEPHONY = 0x1204;
	/**
	 * Defines the <code>UPNP_Service</code> short UUID value.
	 * <p>
	 * <code>UPNP_SERVICE</code> is set to the constant value 0x1205.
	 */
	public static final int UPNP_SERVICE = 0x1205;
	/**
	 * Defines the <code>UPNP_IP_Service</code> short UUID value.
	 * <p>
	 * <code>UPNP_IP_SERVICE</code> is set to the constant value 0x1206.
	 */
	public static final int UPNP_IP_SERVICE = 0x1206;
	/**
	 * Defines the <code>ESDP_UPNP_IP_PAN</code> short UUID value.
	 * <p>
	 * <code>ESDP_UPNP_IP_PAN</code> is set to the constant value 0x1300.
	 */
	public static final int ESDP_UPNP_IP_PAN = 0x1300;

	/**
	 * Defines the <code>ESDP_UPNP_IP_LAP</code> short UUID value.
	 * <p>
	 * <code>ESDP_UPNP_IP_LAP</code> is set to the constant value 0x1301.
	 */
	public static final int ESDP_UPNP_IP_LAP = 0x1301;
	/**
	 * Defines the <code>ESDP_UPNP_L2CAP</code> short UUID value.
	 * <p>
	 * <code>ESDP_UPNP_L2CAP</code> is set to the constant value 0x1302.
	 */
	public static final int ESDP_UPNP_L2CAP = 0x1302;
	/**
	 * Defines the <code>VideoSource</code> short UUID value.
	 * <p>
	 * <code>VIDEOSOURCE</code> is set to the constant value 0x1303.
	 */
	public static final int VIDEOSOURCE = 0x1303;
	/**
	 * Defines the <code>VideoSink</code> short UUID value.
	 * <p>
	 * <code>VIDEOSINK</code> is set to the constant value 0x1304.
	 */
	public static final int VIDEOSINK = 0x1304;

	private static int[] ServiceClassIds = {
			SERVICEDISCOVERYSERVERSERVICECLASSID,
			BROWSEGROUPDESCRIPTORSERVICECLASSID, PUBLICBROWSEGROUP, SERIALPORT,
			LANACCESSUSINGPPP, DIALUPNETWORKING, IRMCSYNC, OBEXOBJECTPUSH,
			OBEXFILETRANSFER, IRMCSYNCCOMMAND, HEADSET, CORDLESSTELEPHONY,
			AUDIOSOURCE, AUDIOSINK, A_V_REMOTECONTROLTARGET,
			ADVANCEDAUDIODISTRIBUTION, A_V_REMOTECONTROL, VIDEOCONFERENCING,
			INTERCOM, FAX, HEADSETAUDIOGATEWAY, WAP, WAP_CLIENT, PANU, NAP, GN,
			DIRECTPRINTING, REFERENCEPRINTING, IMAGING, IMAGINGRESPONDER,
			IMAGINGAUTOMATICARCHIVE, IMAGINGREFERENCEDOBJECTS, HANDSFREE,
			HANDSFREEAUDIOGATEWAY, DIRECTPRINTINGREFERENCEOBJECTSSERVICE,
			REFLECTEDUI, BASICPRINTING, PRINTINGSTATUS,
			HUMANINTERFACEDEVICESERVICE, HARDCOPYCABLEREPLACEMENT, HCR_PRINT,
			HCR_SCAN, COMMON_ISDN_ACCESS, VIDEOCONFERENCINGGW, UDI_MT, UDI_TA,
			AUDIO_VIDEO, SIM_ACCESS, PNPINFORMATION, GENERICNETWORKING,
			GENERICFILETRANSFER, GENERICAUDIO, GENERICTELEPHONY, UPNP_SERVICE,
			UPNP_IP_SERVICE, ESDP_UPNP_IP_PAN, ESDP_UPNP_IP_LAP,
			ESDP_UPNP_L2CAP, VIDEOSOURCE, VIDEOSINK };

	private static String[] ServiceClassIdStrings = {
			"ServiceDiscoveryServerServiceClassID",
			"BrowseGroupDescriptorServiceClassID", "PublicBrowseGroup",
			"SerialPort", "LANAccessUsingPPP", "DialupNetworking", "IrMCSync",
			"OBEXObjectPush", "OBEXFileTransfer", "IrMCSyncCommand", "Headset",
			"CordlessTelephony", "AudioSource", "AudioSink",
			"A_V_RemoteControlTarget", "AdvancedAudioDistribution",
			"A_V_RemoteControl", "VideoConferencing", "Intercom", "Fax",
			"HeadsetAudioGateway", "WAP", "WAP_CLIENT", "PANU", "NAP", "GN",
			"DirectPrinting", "ReferencePrinting", "Imaging",
			"ImagingResponder", "ImagingAutomaticArchive",
			"ImagingReferencedObjects", "Handsfree", "HandsfreeAudioGateway",
			"DirectPrintingReferenceObjectsService", "ReflectedUI",
			"BasicPrinting", "PrintingStatus", "HumanInterfaceDeviceService",
			"HardcopyCableReplacement", "HCR_Print", "HCR_Scan",
			"Common_ISDN_Access", "VideoConferencingGW", "UDI_MT", "UDI_TA",
			"Audio_Video", "SIM_Access", "PnPInformation", "GenericNetworking",
			"GenericFileTransfer", "GenericAudio", "GenericTelephony",
			"UPNP_Service", "UPNP_IP_Service", "ESDP_UPNP_IP_PAN",
			"ESDP_UPNP_IP_LAP", "ESDP_UPNP_L2CAP", "VideoSource", "VideoSink" };

	public static String serviceClassName(int shortUUID) {
		// let's search for our UUID.
		for (int i = ServiceClassIds.length - 1; i >= 0; i--) {
			if (shortUUID == ServiceClassIds[i]) {
				return ServiceClassIdStrings[i];
			}
		}
		return null;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -