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

📄 primitivebertlv.html

📁 JAVA CARD 开发包规格说明,版本为2.2.2
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 </ul><P><DD><DL><DT><B>Parameters:</B><DD><CODE>vArray</CODE> - the byte array containing length bytes of TLV value<DD><CODE>vOff</CODE> - offset within the <CODE>vArray</CODE> byte array where data begins<DD><CODE>vLen</CODE> - the byte length of the value in the input <CODE>vArray</CODE><DT><B>Returns:</B><DD>the resulting size of <code>this</code> if represented in bytes<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - if accessing the input array would cause access of data outside array bounds, or if the array offset or length parameter is negative<DD><CODE><A HREF="../../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</A></CODE> - if <code>vArray</code> is <code>null</code><DD><CODE><A HREF="../../../javacardx/framework/tlv/TLVException.html" title="class in javacardx.framework.tlv">TLVException</A></CODE> - with the following reason codes:<ul> <li><code>TLVException.INSUFFICIENT_STORAGE</code> if the required capacity is not available and the  implementation does not support automatic expansion <li><code>TLVException.EMPTY_TLV</code> if <code>this</code> <CODE>PrimitiveBERTLV</CODE> object is empty. </ul></DL></DD></DL><HR><A NAME="getValue(byte[], short)"><!-- --></A><H3>getValue</H3><PRE>public short <B>getValue</B>(byte[]&nbsp;tlvValue,                      short&nbsp;tOff)               throws <A HREF="../../../javacardx/framework/tlv/TLVException.html" title="class in javacardx.framework.tlv">TLVException</A></PRE><DL><DD>Writes the value (V) part of <code>this</code> Primitive BER TLV object into the output buffer. Returns the length of data written to tlvValue output array<P><DD><DL><DT><B>Parameters:</B><DD><CODE>tlvValue</CODE> - the output byte array<DD><CODE>tOff</CODE> - offset within the <CODE>tlvValue</CODE> byte array where output data begins<DT><B>Returns:</B><DD>the byte length of data written to tlvValue output array<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - if accessing the output array would cause access of data outside array bounds, or if the array offset parameter is negative<DD><CODE><A HREF="../../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</A></CODE> - if <code>tlvValue</code> is <code>null</code><DD><CODE><A HREF="../../../javacardx/framework/tlv/TLVException.html" title="class in javacardx.framework.tlv">TLVException</A></CODE> - with the following reason codes:<ul> <li><code>TLVException.TLV_SIZE_GREATER_THAN_32767</code> if the size of the Primitive BER TLV is > 32767 <li><code>TLVException.EMPTY_TLV</code> if <code>this</code> <CODE>PrimitiveBERTLV</CODE> object is empty. </ul></DL></DD></DL><HR><A NAME="getValueOffset(byte[], short)"><!-- --></A><H3>getValueOffset</H3><PRE>public static short <B>getValueOffset</B>(byte[]&nbsp;berTLVArray,                                   short&nbsp;bTLVOff)                            throws <A HREF="../../../javacardx/framework/tlv/TLVException.html" title="class in javacardx.framework.tlv">TLVException</A></PRE><DL><DD>Returns the offset into the specified input byte array of the value (V) part of the BER TLV structure representation in the input array.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>berTLVArray</CODE> - input byte array<DD><CODE>bTLVOff</CODE> - offset within byte array containing the TLV data<DT><B>Returns:</B><DD>the offset into the specified input byte array of the value (V) part<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - if accessing the input array would cause access of data outside array bounds, or if the array offset parameter is negative<DD><CODE><A HREF="../../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</A></CODE> - if <code>tlvValue</code> or <code>berTLVArray</code> is <code>null</code><DD><CODE><A HREF="../../../javacardx/framework/tlv/TLVException.html" title="class in javacardx.framework.tlv">TLVException</A></CODE> - with the following reason codes:<ul> <li><code>TLVException.TLV_SIZE_GREATER_THAN_32767</code> if the size of the Primitive BER TLV is > 32767. <li><code>TLVException.MALFORMED_TLV</code> if the TLV representation in the input byte array is not a well-formed primitive BER TLV structure. </ul></DL></DD></DL><HR><A NAME="toBytes(byte[], short, byte[], short, short, byte[], short)"><!-- --></A><H3>toBytes</H3><PRE>public static short <B>toBytes</B>(byte[]&nbsp;berTagArray,                            short&nbsp;berTagOff,                            byte[]&nbsp;valueArray,                            short&nbsp;vOff,                            short&nbsp;vLen,                            byte[]&nbsp;outBuf,                            short&nbsp;bOff)</PRE><DL><DD>Writes a primitive TLV representation to the specified byte array using as input a Primitive BER tag representation in a byte array and a value representation in another byte array. <p> Note:<ul> <li><em>If </em><code>vOff+vLen</code><em> is greater than </em><code>valueArray.length</code><em>, the length of the </em><code>valueArray</code><em> array, an </em><code>ArrayIndexOutOfBoundsException</code><em> exception is thrown.</em> </ul><P><DD><DL><DT><B>Parameters:</B><DD><CODE>berTagArray</CODE> - input byte array<DD><CODE>berTagOff</CODE> - offset within byte array containing first byte of tag<DD><CODE>valueArray</CODE> - input byte array containing primitive value<DD><CODE>vOff</CODE> - offset within byte array containing the first byte of value<DD><CODE>vLen</CODE> - length in bytes of the value component of the TLV<DD><CODE>outBuf</CODE> - output byte array<DD><CODE>bOff</CODE> - offset within byte array output data begins<DT><B>Returns:</B><DD>the byte length written to the output array<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - if accessing the input or output arrays  would cause access of data outside array bounds, or if any of the array offset or array length parameters is negative<DD><CODE><A HREF="../../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</A></CODE> - if <code>berTagArray</code> or <code>valueArray</code> or <code>outBuf</code> is <code>null</code><DD><CODE><A HREF="../../../javacardx/framework/tlv/TLVException.html" title="class in javacardx.framework.tlv">TLVException</A></CODE> - with the following reason codes:<ul> <li><code>TLVException.TLV_SIZE_GREATER_THAN_32767</code> if the size of the resulting Primitive BER TLV is > 32767. <li><code>TLVException.MALFORMED_TAG</code> if the tag representation in the byte array is not a well-formed constructed array tag. </ul></DL></DD></DL><HR><A NAME="appendValue(byte[], short, byte[], short, short)"><!-- --></A><H3>appendValue</H3><PRE>public static short <B>appendValue</B>(byte[]&nbsp;berTLVArray,                                short&nbsp;bTLVOff,                                byte[]&nbsp;vArray,                                short&nbsp;vOff,                                short&nbsp;vLen)                         throws <A HREF="../../../javacardx/framework/tlv/TLVException.html" title="class in javacardx.framework.tlv">TLVException</A></PRE><DL><DD>Appends the specified data to the end of the Primitive TLV representation in the specified byte array. Note that this method is only applicable to a primitive TLV representation, otherwise an exception is thrown. <p> Note:<ul> <li><em>If </em><code>vOff+vLen</code><em> is greater than </em><code>vArray.length</code><em>, the length of the </em><code>vArray</code><em> array, an </em><code>ArrayIndexOutOfBoundsException</code><em> exception is thrown.</em> </ul><P><DD><DL><DT><B>Parameters:</B><DD><CODE>berTLVArray</CODE> - input byte array<DD><CODE>bTLVOff</CODE> - offset within byte array containing the TLV data<DD><CODE>vArray</CODE> - the byte array containing value to be appended<DD><CODE>vOff</CODE> - offset within the <CODE>vArray</CODE> byte array where the data begins<DD><CODE>vLen</CODE> - the byte length of the value in the input <CODE>vArray</CODE><DT><B>Returns:</B><DD>the resulting size of <code>this</code> if represented in bytes<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/ArrayIndexOutOfBoundsException.html" title="class in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - if accessing the input arrays would cause access of data outside array bounds, or if any of the array offset or array length parameters is negative<DD><CODE><A HREF="../../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</A></CODE> - if <code>berTLVArray</code> or <code>vArray</code> is <code>null</code><DD><CODE><A HREF="../../../javacardx/framework/tlv/TLVException.html" title="class in javacardx.framework.tlv">TLVException</A></CODE> - with the following reason codes:<ul> <li><code>TLVException.TLV_SIZE_GREATER_THAN_32767</code> if the size of the resulting Primitive BER TLV is > 32767. <li><code>TLVException.MALFORMED_TLV</code> if the TLV representation in the input byte array is not a well-formed primitive BER TLV structure </ul></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="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="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="class-use/PrimitiveBERTLV.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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><b>Java Card </b><br><font size="-1">v2.2.2</font></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javacardx/framework/tlv/PrimitiveBERTag.html" title="class in javacardx.framework.tlv"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javacardx/framework/tlv/TLVException.html" title="class in javacardx.framework.tlv"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?javacardx/framework/tlv/PrimitiveBERTLV.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="PrimitiveBERTLV.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;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright &#169; 1993-2005 Sun Microsystems, Inc. 4150 Network Circle,<br>Santa Clara, CA, 95054, U.S.A.  All Rights Reserved.</i></BODY></HTML>

⌨️ 快捷键说明

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