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

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

?? contact.html

?? J2ME PDA開發PIM的技術規范,可使應用程序查看手機本地聯系人列表, 本地文件
?? HTML
?? 第 1 頁 / 共 5 頁
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<!--NewPage-->
<HTML>
	<HEAD>
		<TITLE>Contact (PIM Optional Package 1.0 Spec, Final Release) </TITLE>
		<!-- Generated by javadoc on Wed Oct 29 13:13:40 PST 2003 -->
		<META NAME="keywords" CONTENT="javax.microedition.pim.Contact,Contact interface">
		<LINK REL="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
			<SCRIPT>
function asd()
{
parent.document.title="Contact (PIM Optional Package 1.0 Spec, Final Release)";
}
			</SCRIPT>
	</HEAD>
	<BODY BGCOLOR="white" onload="asd();">
		<!-- ========== START OF NAVBAR ========== -->
		<A NAME="navbar_top"><!-- --></A>
		<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
			<TR>
				<TD COLSPAN="3" BGCOLOR="#eeeeff" CLASS="NavBarCell1">
					<A NAME="navbar_top_firstrow"><!-- --></A>
					<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
						<TR ALIGN="center" VALIGN="top">
							<TD BGCOLOR="#eeeeff" CLASS="NavBarCell1">
								<A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
							<TD BGCOLOR="#eeeeff" CLASS="NavBarCell1">
								<A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
							<TD BGCOLOR="#ffffff" CLASS="NavBarCell1Rev">
								&nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
							<TD BGCOLOR="#eeeeff" CLASS="NavBarCell1">
								<A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
							<TD BGCOLOR="#eeeeff" CLASS="NavBarCell1">
								<A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
							<TD BGCOLOR="#eeeeff" CLASS="NavBarCell1">
								<A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
							<TD BGCOLOR="#eeeeff" CLASS="NavBarCell1">
								<A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
						</TR>
					</TABLE>
				</TD>
				<TD ALIGN="right" VALIGN="top" ROWSPAN="3"><EM> PIM Optional Package 1.0<br>
						Final Release</EM>
				</TD>
			</TR>
			<TR>
				<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV CLASS&nbsp; &nbsp;<A HREF="../../../javax/microedition/pim/ContactList.html"><B>NEXT 
								CLASS</B></A></FONT></TD>
				<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top">
							<B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="Contact.html" TARGET="_top"><B>NO FRAMES</B></A>
						&nbsp; &nbsp;
						<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT>
						<NOSCRIPT>
							<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
						</NOSCRIPT>
					</FONT>
				</TD>
			</TR>
			<TR>
				<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
				<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
			</TR>
		</TABLE>
		<!-- =========== END OF NAVBAR =========== -->
		<HR>
		<!-- ======== START OF CLASS DATA ======== -->
		<H2>
			<FONT SIZE="-1">javax.microedition.pim</FONT>
			<BR>
			Interface Contact</H2>
		<DL>
			<DT><B>All Superinterfaces:</B>
				<DD>
					<A HREF="../../../javax/microedition/pim/PIMItem.html">PIMItem</A></DD>
		</DL>
		<HR>
		<DL>
			<DT>public interface <B>Contact</B><DT>extends <A HREF="../../../javax/microedition/pim/PIMItem.html">
						PIMItem</A></DT></DL>
		<P>
		<P>Represents a single Contact entry in a PIM Contact database. The supported field 
			list for a Contact is also a subset of the fields defined by the vCard 
			specification from the Internet Mail Consortium (http://www.imc.org). This set 
			of fields included in this Contact class represents those necessary to provide 
			the relevant information about a contact without compromising platform 
			portability.
		</P>
		<P>The Contact class has many different fields that it can support. However, each 
			individual Contact object supports only fields valid for its associated list. 
			Its ContactList restricts what fields in a Contact are retained. This reflects 
			that some native Contact databases do not support all of the fields available 
			in a Contact item. The methods <A HREF="../../../javax/microedition/pim/PIMList.html#isSupportedField(int)">
				<CODE>PIMList.isSupportedField(int)</CODE></A> and <A HREF="../../../javax/microedition/pim/PIMList.html#getSupportedAttributes(int)">
				<CODE>PIMList.getSupportedAttributes(int)</CODE></A> can be used to 
			determine if particular Contact fields and types are supported by a ContactList 
			and therefore persisted when the Contact is committed to its list. Attempts to 
			add or get data based on fields not supported in the Contact's ContactList 
			result in a <A HREF="../../../javax/microedition/pim/UnsupportedFieldException.html">
				<CODE>UnsupportedFieldException</CODE></A>.
		</P>
		<H3>Data</H3>
		The following table details the explicitly defined fields that may by in a 
		Contact. Implementations may extend the field set using extended fields as 
		defined in PIMItem.
		<h4>Table: Standard Fields</h4>
		<table border="1">
			<TR>
				<th>
					Fields
				</th>
				<th>
					Type of Data Associated with Field
				</th>
			</TR>
			<tr>
				<td><code>NAME, ADDR</code></td>
				<td><code>PIMItem.STRING_ARRAY</code></td>
			</tr>
			<tr>
				<td><code>EMAIL, FORMATTED_NAME, NICKNAME, NOTE, ORG, TEL, TITLE, UID, URL</code></td>
				<td><code>PIMItem.STRING</code></td>
			</tr>
			<tr>
				<td><code>BIRTHDAY, REVISION</code></td>
				<td><code>PIMItem.DATE</code></td>
			</tr>
			<tr>
				<td><code>PHOTO, PUBLIC_KEY</code></td>
				<td><code>PIMItem.BINARY</code></td>
			</tr>
			<tr>
				<td><code>PHOTO_URL, PUBLIC_KEY_STRING</code></td>
				<td><code>PIMItem.STRING</code></td>
			</tr>
			<tr>
				<td><code>CLASS</code></td>
				<td><code>PIMItem.INT</code></td>
			</tr>
		</table>
		<h3>Required Field Support</h3>
		<P>All Contact fields may or may not be supported by a particular list. This is due 
			to the fact that underlying native databases may not support all of the fields 
			defined in this API. Support for any of the fields can be determined by the 
			method <A HREF="../../../javax/microedition/pim/PIMList.html#isSupportedField(int)">
				<CODE>PIMList.isSupportedField(int)</CODE></A>.
		</P>
		<P>
			Native Contact databases may require some of the fields to have values assigned 
			to them in order to be persisted. If an application does not provide values for 
			these fields, default values are provided for the Contact by the VM when the 
			Contact is persisted.
		</P>
		<h3>Examples</h3>
		<h4>Explicit Field Use with Field Checking</h4>
		This first example shows explicit field access in which each field is properly 
		checked for support prior to use. This results in code that is more portable 
		across PIM implementations regardless of which specific fields are supported on 
		particular PIM list implementations. If one of the fields is not supported by 
		the list, the field is not set in the Contact.
		<pre> ContactList contacts = null;
 try {
    contacts = (ContactList) PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);
 } catch (PIMException e) {
    // An error occurred
    return;
 }
 Contact contact = contacts.createContact();
 String[] addr = new String[contacts.stringArraySize(Contact.ADDR)];
 String[] name = new String[contacts.stringArraySize(Contact.NAME)];

 if (contacts.isSupportedField(Contact.NAME_FORMATTED)
      contact.addString(Contact.NAME_FORMATTED, PIMItem.ATTR_NONE, "Mr. John Q. Public, Esq.");
 if (contacts.isSupportedArrayElement(Contact.NAME, Contact.NAME_FAMILY))
      name[Contact.NAME_FAMILY] = "Public";
 if (contacts.isSupportedArrayElement(Contact.NAME, Contact.NAME_GIVEN))
      name[Contact.NAME_GIVEN] = "John";
 contact.addStringArray(Contact.NAME, PIMItem.ATTR_NONE, name);
 if (contacts.isSupportedArrayElement(Contact.ADDR, Contact.ADDR_COUNTRY))
      addr[Contact.ADDR_COUNTRY] = "USA";
 if (contacts.isSupportedArrayElement(Contact.ADDR, Contact.ADDR_LOCALITY))
      addr[Contact.ADDR_LOCALITY] = "Coolsville";
 if (contacts.isSupportedArrayElement(Contact.ADDR, Contact.ADDR_POSTALCODE))
      addr[Contact.ADDR_POSTALCODE] = "91921-1234";
 if (contacts.isSupportedArrayElement(Contact.ADDR, Contact.ADDR_STREET))
      addr[Contact.ADDR_STREET] = "123 Main Street";
 if (contacts.isSupportedField(Contact.ADDR))
    contact.addStringArray(Contact.ADDR, Contact.ATTR_HOME, addr);
 if (contacts.isSupportedField(Contact.TEL))
    contact.addString(Contact.TEL, Contact.ATTR_HOME, "613-123-4567");
 if (contacts.maxCategories() != 0
       &amp;&amp; contacts.isCategory("Friends"))
    contact.addToCategory("Friends");
 if (contacts.isSupportedField(Contact.BIRTHDAY))
    contact.addDate(Contact.BIRTHDAY, PIMItem.ATTR_NONE, new Date().getTime());
 if (contacts.isSupportedField(Contact.EMAIL)) {
    contact.addString(Contact.EMAIL, Contact.ATTR_HOME | Contact.ATTR_PREFERRED, "jqpublic@xyz.dom1.com");
 }
 try {
      contact.commit();
 } catch (PIMException e) {
      // An error occured
 }
 try {
      contacts.close();
 } catch (PIMException e) {
 }
 </pre>
		<h4>Explicit Field Use with Exception Handling</h4>
		This second example also shows explicit field access that properly handles 
		optionally supported fields by use of a try catch block with <code>UnsupportedFieldException</code>. 
		In this case, the setting of the whole Contact is rejected if any of the fields 
		are not supported in the particular list implementation.
		<PRE>  ContactList contacts = null;
  try {
    contacts = (ContactList) PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);
  } catch (PIMException e) {
      // An error occurred
      return;
  }
  Contact contact = contacts.createContact();

  String[] name = new String[contacts.stringArraySize(Contact.NAME)];
  name[Contact.NAME_GIVEN] = "John";
  name[Contact.NAME_FAMILY] = "Public";

  String[] addr = new String[contacts.stringArraySize(Contact.ADDR)];
  addr[Contact.ADDR_COUNTRY] = "USA";
  addr[Contact.ADDR_LOCALITY] = "Coolsville";
  addr[Contact.ADDR_POSTALCODE] = "91921-1234";
  addr[Contact.ADDR_STREET] = "123 Main Street";

  try {
     contact.addString(Contact.NAME_FORMATTED, PIMItem.ATTR_NONE, "Mr. John Q. Public, Esq.");
     contact.addStringArray(Contact.NAME, PIMItem.ATTR_NONE, name);
     contact.addStringArray(Contact.ADDR, Contact.ATTR_HOME, addr);
     contact.addString(Contact.TEL, Contact.ATTR_HOME, "613-123-4567");
     contact.addToCategory("Friends");
     contact.addDate(Contact.BIRTHDAY, PIMItem.ATTR_NONE, new Date().getTime());
     contact.addString(Contact.EMAIL, Contact.ATTR_HOME | Contact.ATTR_PREFERRED, "jqpublic@xyz.dom1.com");

  } catch (UnsupportedFieldException e) {
    // In this case, we choose not to save the contact at all if any of the
    // fields are not supported on this platform.
    System.out.println("Contact not saved");
    return;
  }

  try {
      contact.commit();
  } catch (PIMException e) {
      // An error occured
  }
  try {
      contacts.close();
  } catch (PIMException e) {
  }
 </PRE>
		<P>
		<P>
			<DL>
				<DT><B>Since:</B>
					<DD>
						PIM 1.0 <DT><B>See Also:</B><DD><A target="_top" href="http://www.imc.org/pdi">Internet 
									Mail Consortium PDI</A>, <A HREF="../../../javax/microedition/pim/ContactList.html">
									<CODE>ContactList</CODE></A></DD></DL>
			<HR>
		<P>
			<!-- ======== NESTED CLASS SUMMARY ======== -->
			<!-- =========== FIELD SUMMARY =========== -->
			<A NAME="field_summary"><!-- --></A>
			<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
				<TR BGCOLOR="#ccccff" CLASS="TableHeadingColor">
					<TD COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TD>
				</TR>
				<TR BGCOLOR="white" CLASS="TableRowColor">
					<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;int</CODE></FONT></TD>
					<TD><CODE><B><A HREF="../../../javax/microedition/pim/Contact.html#ADDR">ADDR</A></B></CODE>
						<BR>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Field specifying an 
						address for this Contact.</TD>
				</TR>
				<TR BGCOLOR="white" CLASS="TableRowColor">
					<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;int</CODE></FONT></TD>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图欧美偷拍| 日本韩国欧美一区二区三区| 自拍视频在线观看一区二区| 在线播放亚洲一区| 成人国产精品视频| 麻豆成人在线观看| 亚洲少妇30p| 精品国产露脸精彩对白| 欧美揉bbbbb揉bbbbb| aaa亚洲精品| 国产精品911| 毛片av一区二区| 亚洲h动漫在线| 亚洲一区二区五区| 自拍偷拍亚洲激情| 国产精品久99| 欧美激情在线一区二区三区| 久久亚洲捆绑美女| 日韩欧美的一区二区| 欧美精品v日韩精品v韩国精品v| 91年精品国产| av电影在线观看不卡| 成人一道本在线| 国产精品一区不卡| 精品一区二区三区不卡| 日韩极品在线观看| 丝袜美腿一区二区三区| 亚洲国产成人porn| 午夜欧美电影在线观看| 亚洲精品乱码久久久久久久久| 一区在线播放视频| **欧美大码日韩| 亚洲三级理论片| 自拍偷自拍亚洲精品播放| 亚洲欧美影音先锋| 中文字幕中文字幕中文字幕亚洲无线 | 一区二区欧美视频| 一区二区在线免费观看| 亚洲精品自拍动漫在线| 一区二区三区高清| 亚洲综合一区二区精品导航| 亚洲成人动漫av| 日本欧美肥老太交大片| 毛片av中文字幕一区二区| 久久er99热精品一区二区| 国内欧美视频一区二区 | 麻豆精品在线观看| 蜜臀av性久久久久蜜臀aⅴ流畅 | 国产美女av一区二区三区| 国内精品久久久久影院一蜜桃| 狠狠色丁香久久婷婷综合_中 | 国产69精品久久久久777| 国产福利一区在线| 成人黄动漫网站免费app| 91浏览器在线视频| 欧美日韩一区二区三区视频 | 亚洲日本乱码在线观看| 亚洲自拍都市欧美小说| 免费亚洲电影在线| 国产成人三级在线观看| 福利电影一区二区| 色成年激情久久综合| 538prom精品视频线放| 精品国产乱码久久久久久久久| 国产精品无人区| 香蕉乱码成人久久天堂爱免费| 青椒成人免费视频| 国产精品2024| 欧美视频精品在线| 欧美白人最猛性xxxxx69交| 中文字幕精品一区二区精品绿巨人| 亚洲欧美激情插| 欧美a一区二区| voyeur盗摄精品| 欧美日韩高清一区二区不卡| 久久精品视频一区二区| 亚洲国产综合人成综合网站| 精品一区二区影视| 91国产福利在线| www精品美女久久久tv| 一区二区免费在线| 国产成人日日夜夜| 3d成人h动漫网站入口| 中文字幕精品—区二区四季| 午夜精品久久久久久久蜜桃app| 国产成人精品三级麻豆| 欧美乱妇一区二区三区不卡视频| 欧美国产乱子伦 | 国产欧美1区2区3区| 亚洲成人动漫精品| 99久久免费精品高清特色大片| 日韩一区二区在线观看视频 | 日韩**一区毛片| aaa国产一区| 久久久久久黄色| 五月综合激情日本mⅴ| 成人免费福利片| 日韩精品一区二区在线| 亚洲激情一二三区| 国产成人av电影在线| 91精品国产91久久久久久最新毛片| 中文字幕一区免费在线观看 | 在线免费观看成人短视频| 久久综合久久久久88| 视频一区二区中文字幕| 色综合久久88色综合天天6| 国产视频在线观看一区二区三区 | 久久久久国产精品人| 五月激情丁香一区二区三区| 色乱码一区二区三区88| 国产精品天干天干在线综合| 久久精品国产第一区二区三区| 欧美影视一区二区三区| 中文字幕一区二区三中文字幕| 国产精品一区二区三区四区| 欧美变态tickling挠脚心| 日韩精品视频网站| 欧美日韩亚洲另类| 亚洲第一激情av| 欧美性大战久久久| 亚洲午夜精品在线| 欧美性受极品xxxx喷水| 亚洲精选视频免费看| 色哟哟在线观看一区二区三区| 国产亚洲一区二区三区四区| 国产一本一道久久香蕉| 久久综合成人精品亚洲另类欧美 | 国产ts人妖一区二区| 精品国产第一区二区三区观看体验| 日本在线不卡视频一二三区| 欧美日韩一区久久| 舔着乳尖日韩一区| 欧美一区二视频| 久久成人18免费观看| 精品动漫一区二区三区在线观看| 久久精品国产秦先生| 精品乱码亚洲一区二区不卡| 久久99久久精品欧美| 精品国产亚洲一区二区三区在线观看| 奇米精品一区二区三区四区| 日韩免费观看高清完整版在线观看| 另类调教123区| 精品电影一区二区| 国产69精品久久久久777| 亚洲欧洲另类国产综合| 91久久人澡人人添人人爽欧美| 亚洲一二三四区| 欧美丰满少妇xxxbbb| 麻豆成人91精品二区三区| 精品久久久影院| 成人性生交大片免费看在线播放| 国产精品国产自产拍在线| 91久久精品国产91性色tv| 亚洲成人一区二区| 精品国产亚洲在线| 99久精品国产| 亚洲成人综合视频| 精品动漫一区二区三区在线观看| 国产91露脸合集magnet| 亚洲美女免费视频| 欧美一区二区日韩| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 欧美aaaaaa午夜精品| 国产午夜精品久久久久久久| 99精品一区二区| 免费在线一区观看| 亚洲国产精品黑人久久久| 欧美探花视频资源| 国产精品系列在线播放| 一级特黄大欧美久久久| 精品国产百合女同互慰| 91热门视频在线观看| 青青草原综合久久大伊人精品| 中文字幕欧美日韩一区| 欧美日韩国产bt| 国产69精品久久99不卡| 亚洲成人在线观看视频| 国产欧美日韩麻豆91| 欧美三日本三级三级在线播放| 精品一区二区三区在线观看| 亚洲狼人国产精品| 欧美白人最猛性xxxxx69交| 一本大道久久a久久综合| 韩国av一区二区| 午夜电影网一区| 最新成人av在线| 久久先锋影音av鲁色资源网| 欧洲精品一区二区三区在线观看| 国产在线精品一区二区不卡了| 夜夜夜精品看看| 欧美国产欧美综合| 欧美tk—视频vk| 欧美日韩视频第一区| 99久久免费精品| 国产一区二区伦理| 视频一区在线播放| 一区二区三区鲁丝不卡| 国产欧美一区二区三区网站| 日韩欧美中文字幕公布| 欧美性生交片4|