jcsystem.html
来自「JAVA CARD 开发包规格说明,版本为2.2.2」· HTML 代码 · 共 1,064 行 · 第 1/4 页
HTML
1,064 行
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static short</CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#getMaxCommitCapacity()">getMaxCommitCapacity</A></B>()</CODE><BR> Returns the total number of bytes in the commit buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javacard/framework/AID.html" title="class in javacard.framework">AID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#getPreviousContextAID()">getPreviousContextAID</A></B>()</CODE><BR> Obtains the Java Card runtime environment-owned instance of the <code>AID</code> object associated with the previously active applet context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static byte</CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#getTransactionDepth()">getTransactionDepth</A></B>()</CODE><BR> Returns the current transaction nesting depth level.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static short</CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#getUnusedCommitCapacity()">getUnusedCommitCapacity</A></B>()</CODE><BR> Returns the number of bytes left in the commit buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static short</CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#getVersion()">getVersion</A></B>()</CODE><BR> Returns the current major and minor version of the Java Card API.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#isAppletActive(javacard.framework.AID)">isAppletActive</A></B>(<A HREF="../../javacard/framework/AID.html" title="class in javacard.framework">AID</A> theApplet)</CODE><BR> This method is used to determine if the specified applet is active on the card.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#isObjectDeletionSupported()">isObjectDeletionSupported</A></B>()</CODE><BR> This method is used to determine if the implementation for the Java Card platform supports the object deletion mechanism.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static byte</CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#isTransient(java.lang.Object)">isTransient</A></B>(<A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A> theObj)</CODE><BR> Checks if the specified object is transient.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../javacard/framework/AID.html" title="class in javacard.framework">AID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#lookupAID(byte[], short, byte)">lookupAID</A></B>(byte[] buffer, short offset, byte length)</CODE><BR> Returns the Java Card runtime environment-owned instance of the <code>AID</code> object, if any, encapsulating the specified AID bytes in the <code>buffer</code> parameter if there exists a successfully installed applet on the card whose instance AID exactly matches that of the specified AID bytes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#makeTransientBooleanArray(short, byte)">makeTransientBooleanArray</A></B>(short length, byte event)</CODE><BR> Creates a transient boolean array with the specified array length.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#makeTransientByteArray(short, byte)">makeTransientByteArray</A></B>(short length, byte event)</CODE><BR> Creates a transient byte array with the specified array length.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#makeTransientObjectArray(short, byte)">makeTransientObjectArray</A></B>(short length, byte event)</CODE><BR> Creates a transient array of <code>Object</code> with the specified array length.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static short[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#makeTransientShortArray(short, byte)">makeTransientShortArray</A></B>(short length, byte event)</CODE><BR> Creates a transient short array with the specified array length.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javacard/framework/JCSystem.html#requestObjectDeletion()">requestObjectDeletion</A></B>()</CODE><BR> This method is invoked by the applet to trigger the object deletion service of the Java Card runtime environment.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="MEMORY_TYPE_PERSISTENT"><!-- --></A><H3>MEMORY_TYPE_PERSISTENT</H3><PRE>public static final byte <B>MEMORY_TYPE_PERSISTENT</B></PRE><DL><DD>Constant to indicate persistent memory type.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javacard.framework.JCSystem.MEMORY_TYPE_PERSISTENT">Constant Field Values</A></DL></DL><HR><A NAME="MEMORY_TYPE_TRANSIENT_RESET"><!-- --></A><H3>MEMORY_TYPE_TRANSIENT_RESET</H3><PRE>public static final byte <B>MEMORY_TYPE_TRANSIENT_RESET</B></PRE><DL><DD>Constant to indicate transient memory of CLEAR_ON_RESET type.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javacard.framework.JCSystem.MEMORY_TYPE_TRANSIENT_RESET">Constant Field Values</A></DL></DL><HR><A NAME="MEMORY_TYPE_TRANSIENT_DESELECT"><!-- --></A><H3>MEMORY_TYPE_TRANSIENT_DESELECT</H3><PRE>public static final byte <B>MEMORY_TYPE_TRANSIENT_DESELECT</B></PRE><DL><DD>Constant to indicate transient memory of CLEAR_ON_DESELECT type.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javacard.framework.JCSystem.MEMORY_TYPE_TRANSIENT_DESELECT">Constant Field Values</A></DL></DL><HR><A NAME="NOT_A_TRANSIENT_OBJECT"><!-- --></A><H3>NOT_A_TRANSIENT_OBJECT</H3><PRE>public static final byte <B>NOT_A_TRANSIENT_OBJECT</B></PRE><DL><DD>This event code indicates that the object is not transient.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javacard.framework.JCSystem.NOT_A_TRANSIENT_OBJECT">Constant Field Values</A></DL></DL><HR><A NAME="CLEAR_ON_RESET"><!-- --></A><H3>CLEAR_ON_RESET</H3><PRE>public static final byte <B>CLEAR_ON_RESET</B></PRE><DL><DD>This event code indicates that the contents of the transient object are cleared to the default value on card reset (or power on) event.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javacard.framework.JCSystem.CLEAR_ON_RESET">Constant Field Values</A></DL></DL><HR><A NAME="CLEAR_ON_DESELECT"><!-- --></A><H3>CLEAR_ON_DESELECT</H3><PRE>public static final byte <B>CLEAR_ON_DESELECT</B></PRE><DL><DD>This event code indicates that the contents of the transient object are cleared to the default value on applet deselection event or in <code>CLEAR_ON_RESET</code> cases. <p>Notes:<ul> <li><code>CLEAR_ON_DESELECT</code><em> transient objects can be accessed only when the applet which created the object is in the same context as the currently selected applet.</em> <li><em>The Java Card runtime environment will throw a </em><code>SecurityException</code><em> if a </em><code>CLEAR_ON_DESELECT</code><em> transient object is accessed when the currently selected applet is not in the same context as the applet which created the object.</em> </ul><P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javacard.framework.JCSystem.CLEAR_ON_DESELECT">Constant Field Values</A></DL></DL><!-- ============ 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="isTransient(java.lang.Object)"><!-- --></A><H3>isTransient</H3><PRE>public static byte <B>isTransient</B>(<A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A> theObj)</PRE><DL><DD>Checks if the specified object is transient. <p>Note:<ul> <em>This method returns </em><code>NOT_A_TRANSIENT_OBJECT</code><em> if the specified object is <code>null</code> or is not an array type.</em> </ul><P><DD><DL><DT><B>Parameters:</B><DD><CODE>theObj</CODE> - the object being queried<DT><B>Returns:</B><DD><code>NOT_A_TRANSIENT_OBJECT</code>, <code>CLEAR_ON_RESET</code>, or <code>CLEAR_ON_DESELECT</code><DT><B>See Also:</B><DD><A HREF="../../javacard/framework/JCSystem.html#makeTransientBooleanArray(short, byte)"><CODE>makeTransientBooleanArray(short, byte)</CODE></A>, <A HREF="../../javacard/framework/JCSystem.html#makeTransientByteArray(short, byte)"><CODE>makeTransientByteArray(short, byte)</CODE></A>, <A HREF="../../javacard/framework/JCSystem.html#makeTransientShortArray(short, byte)"><CODE>makeTransientShortArray(short, byte)</CODE></A>, <A HREF="../../javacard/framework/JCSystem.html#makeTransientObjectArray(short, byte)"><CODE>makeTransientObjectArray(short, byte)</CODE></A>, <A HREF="../../javacardx/framework/util/intx/JCint.html#makeTransientIntArray(short, byte)"><CODE>javacardx.framework.util.intx.JCint.makeTransientIntArray(short, byte)</CODE></A></DL></DD></DL><HR><A NAME="makeTransientBooleanArray(short, byte)"><!-- --></A><H3>makeTransientBooleanArray</H3><PRE>public static boolean[] <B>makeTransientBooleanArray</B>(short length, byte event) throws <A HREF="../../java/lang/NegativeArraySizeException.html" title="class in java.lang">NegativeArraySizeException</A>,
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?