store.html

来自「维信SDK文档。源码要求为至少5个C或Java源码」· HTML 代码 · 共 450 行 · 第 1/2 页

HTML
450
字号
<TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="list()"><!-- --></A><H3>list</H3><PRE>       <A HREF="../../widsets/api/List.html" title="class in ">List</A> <B>list</B>()</PRE><DL><DD>Returns a list containing the names of all stored elements.<P><DD><DL><DT><B>Returns:</B><DD>List of String elements</DL></DD></DL><HR><A NAME="get(String)"><!-- --></A><H3>get</H3><PRE>       <A HREF="../../widsets/api/ByteArray.html" title="class in ">ByteArray</A> <B>get</B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name)</PRE><DL><DD>Returns the named element as ByteArray.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of element to retrieve<DT><B>Returns:</B><DD>ByteArray or <code>null</code> if the store does not contain named elements.</DL></DD></DL><HR><A NAME="getValue(String)"><!-- --></A><H3>getValue</H3><PRE>       <A HREF="../../widsets/api/Value.html" title="class in ">Value</A> <B>getValue</B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name)</PRE><DL><DD>Returns the named element as Value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of element to retrieve<DT><B>Returns:</B><DD>Value or <code>null</code> if the store does not contain named elements.</DL></DD></DL><HR><A NAME="getStream(String)"><!-- --></A><H3>getStream</H3><PRE>       <A HREF="../../widsets/api/InputStream.html" title="class in ">InputStream</A> <B>getStream</B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name)</PRE><DL><DD>Returns the named element as InputStream.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of element to retrieve<DT><B>Returns:</B><DD>InputStream or <code>null</code> if the store does not contain named elements.</DL></DD></DL><HR><A NAME="has(String)"><!-- --></A><H3>has</H3><PRE>       boolean <B>has</B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name)</PRE><DL><DD>Checks if the store has a named element.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of element to check for<DT><B>Returns:</B><DD><code>true</code> if the element exists, <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="put(String, ByteArray)"><!-- --></A><H3>put</H3><PRE>       void <B>put</B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name,                <A HREF="../../widsets/api/ByteArray.html" title="class in ">ByteArray</A>&nbsp;array)</PRE><DL><DD>Sets an element to Store. If there already exists an element with given name, it is overwritten.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of element to retrieve<DD><CODE>array</CODE> - Content of element</DL></DD></DL><HR><A NAME="put(String, Value)"><!-- --></A><H3>put</H3><PRE>       void <B>put</B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name,                <A HREF="../../widsets/api/Value.html" title="class in ">Value</A>&nbsp;value)</PRE><DL><DD>Sets an element to Store. If there already exists an element with given name, it is overwritten.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of element to retrieve<DD><CODE>value</CODE> - Content of element</DL></DD></DL><HR><A NAME="put(String, OutputStream)"><!-- --></A><H3>put</H3><PRE>       void <B>put</B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name,                <A HREF="../../widsets/api/OutputStream.html" title="class in ">OutputStream</A>&nbsp;output)</PRE><DL><DD>Sets an element to Store. If there already exists an element with given name, it is overwritten.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of element to retrieve<DD><CODE>output</CODE> - Content of element</DL></DD></DL><HR><A NAME="remove(String)"><!-- --></A><H3>remove</H3><PRE>       void <B>remove</B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name)</PRE><DL><DD>Removes named element from Store.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of element to remove</DL></DD></DL><HR><A NAME="getSize()"><!-- --></A><H3>getSize</H3><PRE>       int <B>getSize</B>()</PRE><DL><DD>Returns the amount of space, in bytes, that the store occupies. The size returned includes also any overhead associated with the implementation.<P><DD><DL><DT><B>Returns:</B><DD>the size of the record store in bytes</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../widsets/api/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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../widsets/api/SoftKeyCallback.html" title="interface in "><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../widsets/api/String.html" title="class in "><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?widsets/api/Store.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Store.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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