📄 recordstoreexception.html
字号:
<BR>
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 <A HREF="../../../../javax/microedition/rms/RecordStore.html">RecordStore</A></CODE></FONT></TD>
<TD><CODE><B>RecordStore.</B><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> recordStoreName, boolean createIfNecessary, int authmode, boolean writable)</CODE>
<BR>
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 <A HREF="../../../../javax/microedition/rms/RecordStore.html">RecordStore</A></CODE></FONT></TD>
<TD><CODE><B>RecordStore.</B><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> recordStoreName, <A HREF="../../../../java/lang/String.html">String</A> vendorName, <A HREF="../../../../java/lang/String.html">String</A> suiteName)</CODE>
<BR>
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> void</CODE></FONT></TD>
<TD><CODE><B>RecordStore.</B><B><A HREF="../../../../javax/microedition/rms/RecordStore.html#setMode(int, boolean)">setMode</A></B>(int authmode, boolean writable)</CODE>
<BR>
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> void</CODE></FONT></TD>
<TD><CODE><B>RecordStore.</B><B><A HREF="../../../../javax/microedition/rms/RecordStore.html#closeRecordStore()">closeRecordStore</A></B>()</CODE>
<BR>
This method is called when the MIDlet requests to have the record store closed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B>RecordStore.</B><B><A HREF="../../../../javax/microedition/rms/RecordStore.html#getNextRecordID()">getNextRecordID</A></B>()</CODE>
<BR>
Returns the recordId of the next record to be added to the record store.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B>RecordStore.</B><B><A HREF="../../../../javax/microedition/rms/RecordStore.html#addRecord(byte[], int, int)">addRecord</A></B>(byte[] data, int offset, int numBytes)</CODE>
<BR>
Adds a new record to the record store.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>RecordStore.</B><B><A HREF="../../../../javax/microedition/rms/RecordStore.html#deleteRecord(int)">deleteRecord</A></B>(int recordId)</CODE>
<BR>
The record is deleted from the record store.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B>RecordStore.</B><B><A HREF="../../../../javax/microedition/rms/RecordStore.html#getRecordSize(int)">getRecordSize</A></B>(int recordId)</CODE>
<BR>
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> int</CODE></FONT></TD>
<TD><CODE><B>RecordStore.</B><B><A HREF="../../../../javax/microedition/rms/RecordStore.html#getRecord(int, byte[], int)">getRecord</A></B>(int recordId, byte[] buffer, int offset)</CODE>
<BR>
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> byte[]</CODE></FONT></TD>
<TD><CODE><B>RecordStore.</B><B><A HREF="../../../../javax/microedition/rms/RecordStore.html#getRecord(int)">getRecord</A></B>(int recordId)</CODE>
<BR>
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> void</CODE></FONT></TD>
<TD><CODE><B>RecordStore.</B><B><A HREF="../../../../javax/microedition/rms/RecordStore.html#setRecord(int, byte[], int, int)">setRecord</A></B>(int recordId, byte[] newData, int offset, int numBytes)</CODE>
<BR>
Sets the data in the given record to that passed in.</TD>
</TR>
</TABLE>
<P>
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_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> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../javax/microedition/rms/RecordStoreException.html"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<strong>MID Profile</strong></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="RecordStoreException.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<font size="-1"><a href="mailto:midp-feedback@risc.sps.mot.com">Submit a comment or suggestion</a> Version 2.0 of MID Profile Specification<br>Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright (c) 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -