📄 pim.html
字号:
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <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 pimListType,
int mode)</CODE>
<BR>
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 <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 pimListType,
int mode, java.lang.String name)</CODE>
<BR>
Open a named PIM
List.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract
java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/PIM.html#supportedSerialFormats(int)">supportedSerialFormats</A></B>(int pimListType)</CODE>
<BR>
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 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> item,
java.io.OutputStream os, java.lang.String enc,
java.lang.String dataFormat)</CODE>
<BR>
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>
<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>
<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></DD></DL>
</DD>
</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></DD></DL>
</DD>
</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></DD></DL>
</DD>
</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></DD></DL>
</DD>
</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></DD></DL>
</DD>
</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></DD></DL>
</DD>
</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></P>
</DD>
</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></P>
<DD>
<DL>
<DT><B>Returns:</B><DD>an instance of the PIM class.</DD></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 pimListType,
int 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></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.</DD></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 pimListType,
int mode,
java.lang.String name)
throws <A HREF="../../../javax/microedition/pim/PIMException.html">PIMException</A></PRE>
<DL>
<DD>
Open a named PIM List. Only string names returned by <A HREF="../../../javax/microedition/pim/PIM.html#listPIMLists(int)">
<CODE>listPIMLists(int)</CODE></A> can be used to open a list.
<P></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>.<DD><CODE>name</CODE> - the named List to open <DT><B>Returns:</B><DD>the
named List. <DT><B>Throws:</B>
<DD>
<CODE><A HREF="../../../javax/microedition/pim/PIMException.html">PIMException</A></CODE>
- If the list is not available, 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.
<DD>
<CODE>java.lang.NullPointerException</CODE> - If <code>name</code> is <code>null</code>.</DD></DL>
</DD>
</DL>
<HR>
<A NAME="listPIMLists(int)"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -