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

📄 recordstore.html

📁 是MIDP 的API 查詢文件, 大家可以看一下裡面的index.html, 再用Package 或 Class 名字來查.
💻 HTML
📖 第 1 页 / 共 4 页
字号:
 record store.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#getNumRecords()">getNumRecords</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of records currently in the record store.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#getRecord(int)">getRecord</A></B>(int&nbsp;recordId)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of the data stored in the given record.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#getRecord(int, byte[], int)">getRecord</A></B>(int&nbsp;recordId,          byte[]&nbsp;buffer,          int&nbsp;offset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the data stored in the given record.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#getRecordSize(int)">getRecordSize</A></B>(int&nbsp;recordId)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size (in bytes) of the MIDlet data available in the given record.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#getSize()">getSize</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the amount of space, in bytes, that the record store occupies.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#getSizeAvailable()">getSizeAvailable</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the amount of additional room (in bytes) available for this record store to grow.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#getVersion()">getVersion</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Each time a record store is modified (by <code>addRecord</code>, <code>setRecord</code>, or <code>deleteRecord</code> methods) its <em>version</em> is incremented.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../java/lang/String.html">String</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#listRecordStores()">listRecordStores</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of the names of record stores owned by the MIDlet suite.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../javax/microedition/rms/RecordStore.html">RecordStore</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#openRecordStore(java.lang.String, boolean)">openRecordStore</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;recordStoreName,                boolean&nbsp;createIfNecessary)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open (and possibly create) a record store associated with the given MIDlet suite.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../javax/microedition/rms/RecordStore.html">RecordStore</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#openRecordStore(java.lang.String, boolean, int, boolean)">openRecordStore</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;recordStoreName,                boolean&nbsp;createIfNecessary,                int&nbsp;authmode,                boolean&nbsp;writable)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open (and possibly create) a record store that can be shared with other MIDlet suites.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../javax/microedition/rms/RecordStore.html">RecordStore</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#openRecordStore(java.lang.String, java.lang.String, java.lang.String)">openRecordStore</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;recordStoreName,                <A HREF="../../../java/lang/String.html">String</A>&nbsp;vendorName,                <A HREF="../../../java/lang/String.html">String</A>&nbsp;suiteName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open a record store associated with the named MIDlet suite.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#removeRecordListener(javax.microedition.rms.RecordListener)">removeRecordListener</A></B>(<A HREF="../../../javax/microedition/rms/RecordListener.html">RecordListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the specified RecordListener.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#setMode(int, boolean)">setMode</A></B>(int&nbsp;authmode,        boolean&nbsp;writable)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Changes the access mode for this RecordStore.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/rms/RecordStore.html#setRecord(int, byte[], int, int)">setRecord</A></B>(int&nbsp;recordId,          byte[]&nbsp;newData,          int&nbsp;offset,          int&nbsp;numBytes)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the data in the given record to that passed in.</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.<A HREF="../../../java/lang/Object.html">Object</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></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="AUTHMODE_PRIVATE"><!-- --></A><H3>
AUTHMODE_PRIVATE</H3>
<PRE>
public static final int <B>AUTHMODE_PRIVATE</B></PRE>
<DL>
<DD>Authorization to allow access only to the current MIDlet suite. AUTHMODE_PRIVATE has a value of 0.</DL>
<HR>

<A NAME="AUTHMODE_ANY"><!-- --></A><H3>
AUTHMODE_ANY</H3>
<PRE>
public static final int <B>AUTHMODE_ANY</B></PRE>
<DL>
<DD>Authorization to allow access to any MIDlet suites. AUTHMODE_ANY has a value of 1.</DL>

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


<!-- ============ 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="deleteRecordStore(java.lang.String)"><!-- --></A><H3>
deleteRecordStore</H3>
<PRE>
public static void <B>deleteRecordStore</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;recordStoreName)                              throws <A HREF="../../../javax/microedition/rms/RecordStoreException.html">RecordStoreException</A>,                                     <A HREF="../../../javax/microedition/rms/RecordStoreNotFoundException.html">RecordStoreNotFoundException</A></PRE>
<DL>
<DD>Deletes the named record store. MIDlet suites are only allowed to delete their own record stores. If the named record store is open (by a MIDlet in this suite or a MIDlet in a different MIDlet suite) when this method is called, a RecordStoreException will be thrown.  If the named record store does not exist a RecordStoreNotFoundException will be thrown. Calling this method does NOT result in recordDeleted calls to any registered listeners of this RecordStore.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>recordStoreName</CODE> - the MIDlet suite unique record store to 		delete<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/microedition/rms/RecordStoreException.html">RecordStoreException</A></CODE> - if a record store-related 		exception occurred<DD><CODE><A HREF="../../../javax/microedition/rms/RecordStoreNotFoundException.html">RecordStoreNotFoundException</A></CODE> - if the record store 		could not be found</DL>
</DD>
</DL>
<HR>

<A NAME="openRecordStore(java.lang.String, boolean)"><!-- --></A><H3>
openRecordStore</H3>
<PRE>
public static <A HREF="../../../javax/microedition/rms/RecordStore.html">RecordStore</A> <B>openRecordStore</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;recordStoreName,                                          boolean&nbsp;createIfNecessary)                                   throws <A HREF="../../../javax/microedition/rms/RecordStoreException.html">RecordStoreException</A>,                                          <A HREF="../../../javax/microedition/rms/RecordStoreFullException.html">RecordStoreFullException</A>,                                          <A HREF="../../../javax/microedition/rms/RecordStoreNotFoundException.html">RecordStoreNotFoundException</A></PRE>
<DL>
<DD>Open (and possibly create) a record store associated with the given MIDlet suite. If this method is called by a MIDlet when the record store is already open by a MIDlet in the MIDlet suite, this method returns a reference to the same RecordStore object.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>recordStoreName</CODE> - the MIDlet suite unique name for the          record store, consisting of between one and 32 Unicode          characters inclusive.<DD><CODE>createIfNecessary</CODE> - if true, the record store will be		created if necessary<DT><B>Returns:</B><DD><code>RecordStore</code> object for the record store<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/microedition/rms/RecordStoreException.html">RecordStoreException</A></CODE> - if a record store-related		exception occurred<DD><CODE><A HREF="../../../javax/microedition/rms/RecordStoreNotFoundException.html">RecordStoreNotFoundException</A></CODE> - if the record store		could not be found<DD><CODE><A HREF="../../../javax/microedition/rms/RecordStoreFullException.html">RecordStoreFullException</A></CODE> - if the operation cannot be		completed because the record store is full<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if          recordStoreName is invalid</DL>
</DD>
</DL>
<HR>

<A NAME="openRecordStore(java.lang.String, boolean, int, boolean)"><!-- --></A><H3>
openRecordStore</H3>
<PRE>
public static <A HREF="../../../javax/microedition/rms/RecordStore.html">RecordStore</A> <B>openRecordStore</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;recordStoreName,                                          boolean&nbsp;createIfNecessary,                                          int&nbsp;authmode,                                          boolean&nbsp;writable)                                   throws <A HREF="../../../javax/microedition/rms/RecordStoreException.html">RecordStoreException</A>,                                          <A HREF="../../../javax/microedition/rms/RecordStoreFullException.html">RecordStoreFullException</A>,                                          <A HREF="../../../javax/microedition/rms/RecordStoreNotFoundException.html">RecordStoreNotFoundException</A></PRE>
<DL>
<DD>Open (and possibly create) a record store that can be shared with other MIDlet suites. The RecordStore is owned by the current MIDlet suite. The authorization mode is set when the record store is created, as follows: <ul> <li><code>AUTHMODE_PRIVATE</code> - Only allows the MIDlet          suite that created the RecordStore to access it. This          case behaves identically to          <code>openRecordStore(recordStoreName,          createIfNecessary)</code>.</li> <li><code>AUTHMODE_ANY</code> - Allows any MIDlet to access the          RecordStore. Note that this makes your recordStore          accessible by any other MIDlet on the device. This          could have privacy and security issues depending on          the data being shared. Please use carefully.</li> </ul> <p>The owning MIDlet suite may always access the RecordStore and always has access to write and update the store.</p>

⌨️ 快捷键说明

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