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

📄 pim.html

📁 J2ME手机编程规范JSR-75文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../javax/microedition/pim/PIMItem.html">PIMItem</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/PIM.html#fromSerialFormat(java.io.InputStream, java.lang.String)">fromSerialFormat</A></B>(java.io.InputStream&nbsp;is,                 java.lang.String&nbsp;enc)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates and fills one or more PIM items from data provided in the given InputStream object where the data is expressed in a valid data format supported by this platform.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../javax/microedition/pim/PIM.html">PIM</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/PIM.html#getInstance()">getInstance</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Factory method to get an instance of the PIM class.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/PIM.html#listPIMLists(int)">listPIMLists</A></B>(int&nbsp;pimListType)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list of all PIM List names for the given PIM list type.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../javax/microedition/pim/PIMList.html">PIMList</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/PIM.html#openPIMList(int, int)">openPIMList</A></B>(int&nbsp;pimListType,            int&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open the default list for the indicated PIM list type.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../javax/microedition/pim/PIMList.html">PIMList</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/PIM.html#openPIMList(int, int, java.lang.String)">openPIMList</A></B>(int&nbsp;pimListType,            int&nbsp;mode,            java.lang.String&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open a named PIM List.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/PIM.html#supportedSerialFormats(int)">supportedSerialFormats</A></B>(int&nbsp;pimListType)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns the supported data formats for items used when converting a PIMItem's data to and from data streams.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/PIM.html#toSerialFormat(javax.microedition.pim.PIMItem, java.io.OutputStream, java.lang.String, java.lang.String)">toSerialFormat</A></B>(<A HREF="../../../javax/microedition/pim/PIMItem.html">PIMItem</A>&nbsp;item,               java.io.OutputStream&nbsp;os,               java.lang.String&nbsp;enc,               java.lang.String&nbsp;dataFormat)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the data from the given item to the given OutputStream object as Unicode characters in a format indicated by the String parameter.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="CONTACT_LIST"><!-- --></A><H3>
CONTACT_LIST</H3>
<PRE>
public static final int <B>CONTACT_LIST</B></PRE>
<DL>
<DD>Constant representing a Contact List.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.PIM.CONTACT_LIST">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="EVENT_LIST"><!-- --></A><H3>
EVENT_LIST</H3>
<PRE>
public static final int <B>EVENT_LIST</B></PRE>
<DL>
<DD>Constant representing an Event List.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.PIM.EVENT_LIST">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="TODO_LIST"><!-- --></A><H3>
TODO_LIST</H3>
<PRE>
public static final int <B>TODO_LIST</B></PRE>
<DL>
<DD>Constant representing a ToDo List.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.PIM.TODO_LIST">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="READ_ONLY"><!-- --></A><H3>
READ_ONLY</H3>
<PRE>
public static final int <B>READ_ONLY</B></PRE>
<DL>
<DD>Constant representing opening a list in read only mode.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.PIM.READ_ONLY">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="WRITE_ONLY"><!-- --></A><H3>
WRITE_ONLY</H3>
<PRE>
public static final int <B>WRITE_ONLY</B></PRE>
<DL>
<DD>Constant representing opening a list in write only mode.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.PIM.WRITE_ONLY">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="READ_WRITE"><!-- --></A><H3>
READ_WRITE</H3>
<PRE>
public static final int <B>READ_WRITE</B></PRE>
<DL>
<DD>Constant representing opening a list in read/write mode.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.PIM.READ_WRITE">Constant Field Values</A></DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="PIM()"><!-- --></A><H3>
PIM</H3>
<PRE>
protected <B>PIM</B>()</PRE>
<DL>
<DD>Constructor for subclasses. PIM class objects are not instantiated directly.  To access a PIM object, <A HREF="../../../javax/microedition/pim/PIM.html#getInstance()"><CODE>getInstance()</CODE></A> should be used.
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="getInstance()"><!-- --></A><H3>
getInstance</H3>
<PRE>
public static <A HREF="../../../javax/microedition/pim/PIM.html">PIM</A> <B>getInstance</B>()</PRE>
<DL>
<DD>Factory method to get an instance of the PIM class.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>an instance of the PIM class.</DL>
</DD>
</DL>
<HR>

<A NAME="openPIMList(int, int)"><!-- --></A><H3>
openPIMList</H3>
<PRE>
public abstract <A HREF="../../../javax/microedition/pim/PIMList.html">PIMList</A> <B>openPIMList</B>(int&nbsp;pimListType,                                    int&nbsp;mode)                             throws <A HREF="../../../javax/microedition/pim/PIMException.html">PIMException</A></PRE>
<DL>
<DD>Open the default list for the indicated PIM list type.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pimListType</CODE> - int representing the PIM list type to open, either           <A HREF="../../../javax/microedition/pim/PIM.html#CONTACT_LIST"><CODE>CONTACT_LIST</CODE></A>, <A HREF="../../../javax/microedition/pim/PIM.html#EVENT_LIST"><CODE>EVENT_LIST</CODE></A>, or <A HREF="../../../javax/microedition/pim/PIM.html#TODO_LIST"><CODE>TODO_LIST</CODE></A>.<DD><CODE>mode</CODE> - in which the List is opened, either           <A HREF="../../../javax/microedition/pim/PIM.html#READ_ONLY"><CODE>READ_ONLY</CODE></A>, <A HREF="../../../javax/microedition/pim/PIM.html#READ_WRITE"><CODE>READ_WRITE</CODE></A>, or <A HREF="../../../javax/microedition/pim/PIM.html#WRITE_ONLY"><CODE>WRITE_ONLY</CODE></A>.<DT><B>Returns:</B><DD>the default PIM list for the indicated PIM list type.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/microedition/pim/PIMException.html">PIMException</A></CODE> - If the operation is unsupported or an error occurs.<DD><CODE>java.lang.SecurityException</CODE> - if the application is not given           permission that matches the requested mode.<DD><CODE>java.lang.IllegalArgumentException</CODE> - If an invalid mode is provided as a           parameter or if pimListType is not a valid           PIM list type.</DL>
</DD>
</DL>
<HR>

<A NAME="openPIMList(int, int, java.lang.String)"><!-- --></A><H3>
openPIMList</H3>
<PRE>
public abstract <A HREF="../../../javax/microedition/pim/PIMList.html">PIMList</A> <B>openPIMList</B>(int&nbsp;pimListType,                                    int&nbsp;mode,                                    java.lang.String&nbsp;name)                             throws <A HREF="../../../javax/microedition/pim/PIMException.html">PIMException</A></PRE>
<DL>
<DD>Open a named PIM List. Only string names returned by

⌨️ 快捷键说明

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