PageRenderTime 144ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/bouncycastle/docs/org/bouncycastle/asn1/ASN1InputStream.html

https://bitbucket.org/arkban/somersault
HTML | 469 lines | 396 code | 50 blank | 23 comment | 0 complexity | 5b314386ac63f71052fef82359d58d1a MD5 | raw file
Possible License(s): LGPL-2.1, BSD-3-Clause, Apache-2.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0) on Mon Jan 11 13:46:32 EST 2010 -->
  6. <TITLE>
  7. ASN1InputStream (Bouncy Castle Library 1.45 API Specification)
  8. </TITLE>
  9. <META NAME="date" CONTENT="2010-01-11">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="ASN1InputStream (Bouncy Castle Library 1.45 API Specification)";
  16. }
  17. }
  18. </SCRIPT>
  19. <NOSCRIPT>
  20. </NOSCRIPT>
  21. </HEAD>
  22. <BODY BGCOLOR="white" onload="windowTitle();">
  23. <HR>
  24. <!-- ========= START OF TOP NAVBAR ======= -->
  25. <A NAME="navbar_top"><!-- --></A>
  26. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  27. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  28. <TR>
  29. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  30. <A NAME="navbar_top_firstrow"><!-- --></A>
  31. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  32. <TR ALIGN="center" VALIGN="top">
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  36. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  39. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  40. </TR>
  41. </TABLE>
  42. </TD>
  43. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  44. <b>Bouncy Castle Cryptography Library 1.45</b></EM>
  45. </TD>
  46. </TR>
  47. <TR>
  48. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  49. &nbsp;<A HREF="../../../org/bouncycastle/asn1/ASN1Generator.html" title="class in org.bouncycastle.asn1"><B>PREV CLASS</B></A>&nbsp;
  50. &nbsp;<A HREF="../../../org/bouncycastle/asn1/ASN1Null.html" title="class in org.bouncycastle.asn1"><B>NEXT CLASS</B></A></FONT></TD>
  51. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  52. <A HREF="../../../index.html?org/bouncycastle/asn1/ASN1InputStream.html" target="_top"><B>FRAMES</B></A> &nbsp;
  53. &nbsp;<A HREF="ASN1InputStream.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  54. &nbsp;<SCRIPT type="text/javascript">
  55. <!--
  56. if(window==top) {
  57. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  58. }
  59. //-->
  60. </SCRIPT>
  61. <NOSCRIPT>
  62. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  63. </NOSCRIPT>
  64. </FONT></TD>
  65. </TR>
  66. <TR>
  67. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  68. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.io.FilterInputStream">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  69. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  70. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  71. </TR>
  72. </TABLE>
  73. <A NAME="skip-navbar_top"></A>
  74. <!-- ========= END OF TOP NAVBAR ========= -->
  75. <HR>
  76. <!-- ======== START OF CLASS DATA ======== -->
  77. <H2>
  78. <FONT SIZE="-1">
  79. org.bouncycastle.asn1</FONT>
  80. <BR>
  81. Class ASN1InputStream</H2>
  82. <PRE>
  83. java.lang.Object
  84. <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.io.InputStream
  85. <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.io.FilterInputStream
  86. <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.bouncycastle.asn1.ASN1InputStream</B>
  87. </PRE>
  88. <DL>
  89. <DT><B>All Implemented Interfaces:</B> <DD>java.io.Closeable, <A HREF="../../../org/bouncycastle/asn1/DERTags.html" title="interface in org.bouncycastle.asn1">DERTags</A></DD>
  90. </DL>
  91. <HR>
  92. <DL>
  93. <DT><PRE>public class <B>ASN1InputStream</B><DT>extends java.io.FilterInputStream<DT>implements <A HREF="../../../org/bouncycastle/asn1/DERTags.html" title="interface in org.bouncycastle.asn1">DERTags</A></DL>
  94. </PRE>
  95. <P>
  96. a general purpose ASN.1 decoder - note: this class differs from the
  97. others in that it returns null after it has read the last object in
  98. the stream. If an ASN.1 NULL is encountered a DER/BER Null object is
  99. returned.
  100. <P>
  101. <P>
  102. <HR>
  103. <P>
  104. <!-- =========== FIELD SUMMARY =========== -->
  105. <A NAME="field_summary"><!-- --></A>
  106. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  107. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  108. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  109. <B>Field Summary</B></FONT></TH>
  110. </TR>
  111. </TABLE>
  112. &nbsp;<A NAME="fields_inherited_from_class_java.io.FilterInputStream"><!-- --></A>
  113. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  114. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  115. <TH ALIGN="left"><B>Fields inherited from class java.io.FilterInputStream</B></TH>
  116. </TR>
  117. <TR BGCOLOR="white" CLASS="TableRowColor">
  118. <TD><CODE>in</CODE></TD>
  119. </TR>
  120. </TABLE>
  121. &nbsp;<A NAME="fields_inherited_from_class_org.bouncycastle.asn1.DERTags"><!-- --></A>
  122. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  123. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  124. <TH ALIGN="left"><B>Fields inherited from interface org.bouncycastle.asn1.<A HREF="../../../org/bouncycastle/asn1/DERTags.html" title="interface in org.bouncycastle.asn1">DERTags</A></B></TH>
  125. </TR>
  126. <TR BGCOLOR="white" CLASS="TableRowColor">
  127. <TD><CODE><A HREF="../../../org/bouncycastle/asn1/DERTags.html#APPLICATION">APPLICATION</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#BIT_STRING">BIT_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#BMP_STRING">BMP_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#BOOLEAN">BOOLEAN</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#CONSTRUCTED">CONSTRUCTED</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#ENUMERATED">ENUMERATED</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#EXTERNAL">EXTERNAL</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#GENERAL_STRING">GENERAL_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#GENERALIZED_TIME">GENERALIZED_TIME</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#GRAPHIC_STRING">GRAPHIC_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#IA5_STRING">IA5_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#INTEGER">INTEGER</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#NULL">NULL</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#NUMERIC_STRING">NUMERIC_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#OBJECT_IDENTIFIER">OBJECT_IDENTIFIER</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#OCTET_STRING">OCTET_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#PRINTABLE_STRING">PRINTABLE_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#SEQUENCE">SEQUENCE</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#SEQUENCE_OF">SEQUENCE_OF</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#SET">SET</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#SET_OF">SET_OF</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#T61_STRING">T61_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#TAGGED">TAGGED</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#UNIVERSAL_STRING">UNIVERSAL_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#UTC_TIME">UTC_TIME</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#UTF8_STRING">UTF8_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#VIDEOTEX_STRING">VIDEOTEX_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#VISIBLE_STRING">VISIBLE_STRING</A></CODE></TD>
  128. </TR>
  129. </TABLE>
  130. &nbsp;
  131. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  132. <A NAME="constructor_summary"><!-- --></A>
  133. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  134. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  135. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  136. <B>Constructor Summary</B></FONT></TH>
  137. </TR>
  138. <TR BGCOLOR="white" CLASS="TableRowColor">
  139. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/ASN1InputStream.html#ASN1InputStream(byte[])">ASN1InputStream</A></B>(byte[]&nbsp;input)</CODE>
  140. <BR>
  141. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an ASN1InputStream based on the input byte array.</TD>
  142. </TR>
  143. <TR BGCOLOR="white" CLASS="TableRowColor">
  144. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/ASN1InputStream.html#ASN1InputStream(byte[], boolean)">ASN1InputStream</A></B>(byte[]&nbsp;input,
  145. boolean&nbsp;lazyEvaluate)</CODE>
  146. <BR>
  147. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an ASN1InputStream based on the input byte array.</TD>
  148. </TR>
  149. <TR BGCOLOR="white" CLASS="TableRowColor">
  150. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/ASN1InputStream.html#ASN1InputStream(java.io.InputStream)">ASN1InputStream</A></B>(java.io.InputStream&nbsp;is)</CODE>
  151. <BR>
  152. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  153. </TR>
  154. <TR BGCOLOR="white" CLASS="TableRowColor">
  155. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/ASN1InputStream.html#ASN1InputStream(java.io.InputStream, int)">ASN1InputStream</A></B>(java.io.InputStream&nbsp;input,
  156. int&nbsp;limit)</CODE>
  157. <BR>
  158. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an ASN1InputStream where no DER object will be longer than limit.</TD>
  159. </TR>
  160. <TR BGCOLOR="white" CLASS="TableRowColor">
  161. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/ASN1InputStream.html#ASN1InputStream(java.io.InputStream, int, boolean)">ASN1InputStream</A></B>(java.io.InputStream&nbsp;input,
  162. int&nbsp;limit,
  163. boolean&nbsp;lazyEvaluate)</CODE>
  164. <BR>
  165. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an ASN1InputStream where no DER object will be longer than limit, and constructed
  166. objects such as sequences will be parsed lazily.</TD>
  167. </TR>
  168. </TABLE>
  169. &nbsp;
  170. <!-- ========== METHOD SUMMARY =========== -->
  171. <A NAME="method_summary"><!-- --></A>
  172. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  173. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  174. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  175. <B>Method Summary</B></FONT></TH>
  176. </TR>
  177. <TR BGCOLOR="white" CLASS="TableRowColor">
  178. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  179. <CODE>protected &nbsp;<A HREF="../../../org/bouncycastle/asn1/DERObject.html" title="class in org.bouncycastle.asn1">DERObject</A></CODE></FONT></TD>
  180. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/ASN1InputStream.html#buildObject(int, int, int)">buildObject</A></B>(int&nbsp;tag,
  181. int&nbsp;tagNo,
  182. int&nbsp;length)</CODE>
  183. <BR>
  184. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;build an object given its tag and the number of bytes to construct it from.</TD>
  185. </TR>
  186. <TR BGCOLOR="white" CLASS="TableRowColor">
  187. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  188. <CODE>protected &nbsp;void</CODE></FONT></TD>
  189. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/ASN1InputStream.html#readFully(byte[])">readFully</A></B>(byte[]&nbsp;bytes)</CODE>
  190. <BR>
  191. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  192. </TR>
  193. <TR BGCOLOR="white" CLASS="TableRowColor">
  194. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  195. <CODE>protected &nbsp;int</CODE></FONT></TD>
  196. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/ASN1InputStream.html#readLength()">readLength</A></B>()</CODE>
  197. <BR>
  198. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  199. </TR>
  200. <TR BGCOLOR="white" CLASS="TableRowColor">
  201. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  202. <CODE>&nbsp;<A HREF="../../../org/bouncycastle/asn1/DERObject.html" title="class in org.bouncycastle.asn1">DERObject</A></CODE></FONT></TD>
  203. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/ASN1InputStream.html#readObject()">readObject</A></B>()</CODE>
  204. <BR>
  205. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  206. </TR>
  207. </TABLE>
  208. &nbsp;<A NAME="methods_inherited_from_class_java.io.FilterInputStream"><!-- --></A>
  209. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  210. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  211. <TH ALIGN="left"><B>Methods inherited from class java.io.FilterInputStream</B></TH>
  212. </TR>
  213. <TR BGCOLOR="white" CLASS="TableRowColor">
  214. <TD><CODE>available, close, mark, markSupported, read, read, read, reset, skip</CODE></TD>
  215. </TR>
  216. </TABLE>
  217. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  218. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  219. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  220. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  221. </TR>
  222. <TR BGCOLOR="white" CLASS="TableRowColor">
  223. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  224. </TR>
  225. </TABLE>
  226. &nbsp;
  227. <P>
  228. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  229. <A NAME="constructor_detail"><!-- --></A>
  230. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  231. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  232. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  233. <B>Constructor Detail</B></FONT></TH>
  234. </TR>
  235. </TABLE>
  236. <A NAME="ASN1InputStream(java.io.InputStream)"><!-- --></A><H3>
  237. ASN1InputStream</H3>
  238. <PRE>
  239. public <B>ASN1InputStream</B>(java.io.InputStream&nbsp;is)</PRE>
  240. <DL>
  241. </DL>
  242. <HR>
  243. <A NAME="ASN1InputStream(byte[])"><!-- --></A><H3>
  244. ASN1InputStream</H3>
  245. <PRE>
  246. public <B>ASN1InputStream</B>(byte[]&nbsp;input)</PRE>
  247. <DL>
  248. <DD>Create an ASN1InputStream based on the input byte array. The length of DER objects in
  249. the stream is automatically limited to the length of the input array.
  250. <P>
  251. <DL>
  252. <DT><B>Parameters:</B><DD><CODE>input</CODE> - array containing ASN.1 encoded data.</DL>
  253. </DL>
  254. <HR>
  255. <A NAME="ASN1InputStream(byte[], boolean)"><!-- --></A><H3>
  256. ASN1InputStream</H3>
  257. <PRE>
  258. public <B>ASN1InputStream</B>(byte[]&nbsp;input,
  259. boolean&nbsp;lazyEvaluate)</PRE>
  260. <DL>
  261. <DD>Create an ASN1InputStream based on the input byte array. The length of DER objects in
  262. the stream is automatically limited to the length of the input array.
  263. <P>
  264. <DL>
  265. <DT><B>Parameters:</B><DD><CODE>input</CODE> - array containing ASN.1 encoded data.<DD><CODE>lazyEvaluate</CODE> - true if parsing inside constructed objects can be delayed.</DL>
  266. </DL>
  267. <HR>
  268. <A NAME="ASN1InputStream(java.io.InputStream, int)"><!-- --></A><H3>
  269. ASN1InputStream</H3>
  270. <PRE>
  271. public <B>ASN1InputStream</B>(java.io.InputStream&nbsp;input,
  272. int&nbsp;limit)</PRE>
  273. <DL>
  274. <DD>Create an ASN1InputStream where no DER object will be longer than limit.
  275. <P>
  276. <DL>
  277. <DT><B>Parameters:</B><DD><CODE>input</CODE> - stream containing ASN.1 encoded data.<DD><CODE>limit</CODE> - maximum size of a DER encoded object.</DL>
  278. </DL>
  279. <HR>
  280. <A NAME="ASN1InputStream(java.io.InputStream, int, boolean)"><!-- --></A><H3>
  281. ASN1InputStream</H3>
  282. <PRE>
  283. public <B>ASN1InputStream</B>(java.io.InputStream&nbsp;input,
  284. int&nbsp;limit,
  285. boolean&nbsp;lazyEvaluate)</PRE>
  286. <DL>
  287. <DD>Create an ASN1InputStream where no DER object will be longer than limit, and constructed
  288. objects such as sequences will be parsed lazily.
  289. <P>
  290. <DL>
  291. <DT><B>Parameters:</B><DD><CODE>input</CODE> - stream containing ASN.1 encoded data.<DD><CODE>limit</CODE> - maximum size of a DER encoded object.<DD><CODE>lazyEvaluate</CODE> - true if parsing inside constructed objects can be delayed.</DL>
  292. </DL>
  293. <!-- ============ METHOD DETAIL ========== -->
  294. <A NAME="method_detail"><!-- --></A>
  295. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  296. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  297. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  298. <B>Method Detail</B></FONT></TH>
  299. </TR>
  300. </TABLE>
  301. <A NAME="readLength()"><!-- --></A><H3>
  302. readLength</H3>
  303. <PRE>
  304. protected int <B>readLength</B>()
  305. throws java.io.IOException</PRE>
  306. <DL>
  307. <DD><DL>
  308. </DL>
  309. </DD>
  310. <DD><DL>
  311. <DT><B>Throws:</B>
  312. <DD><CODE>java.io.IOException</CODE></DL>
  313. </DD>
  314. </DL>
  315. <HR>
  316. <A NAME="readFully(byte[])"><!-- --></A><H3>
  317. readFully</H3>
  318. <PRE>
  319. protected void <B>readFully</B>(byte[]&nbsp;bytes)
  320. throws java.io.IOException</PRE>
  321. <DL>
  322. <DD><DL>
  323. </DL>
  324. </DD>
  325. <DD><DL>
  326. <DT><B>Throws:</B>
  327. <DD><CODE>java.io.IOException</CODE></DL>
  328. </DD>
  329. </DL>
  330. <HR>
  331. <A NAME="buildObject(int, int, int)"><!-- --></A><H3>
  332. buildObject</H3>
  333. <PRE>
  334. protected <A HREF="../../../org/bouncycastle/asn1/DERObject.html" title="class in org.bouncycastle.asn1">DERObject</A> <B>buildObject</B>(int&nbsp;tag,
  335. int&nbsp;tagNo,
  336. int&nbsp;length)
  337. throws java.io.IOException</PRE>
  338. <DL>
  339. <DD>build an object given its tag and the number of bytes to construct it from.
  340. <P>
  341. <DD><DL>
  342. </DL>
  343. </DD>
  344. <DD><DL>
  345. <DT><B>Throws:</B>
  346. <DD><CODE>java.io.IOException</CODE></DL>
  347. </DD>
  348. </DL>
  349. <HR>
  350. <A NAME="readObject()"><!-- --></A><H3>
  351. readObject</H3>
  352. <PRE>
  353. public <A HREF="../../../org/bouncycastle/asn1/DERObject.html" title="class in org.bouncycastle.asn1">DERObject</A> <B>readObject</B>()
  354. throws java.io.IOException</PRE>
  355. <DL>
  356. <DD><DL>
  357. </DL>
  358. </DD>
  359. <DD><DL>
  360. <DT><B>Throws:</B>
  361. <DD><CODE>java.io.IOException</CODE></DL>
  362. </DD>
  363. </DL>
  364. <!-- ========= END OF CLASS DATA ========= -->
  365. <HR>
  366. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  367. <A NAME="navbar_bottom"><!-- --></A>
  368. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  369. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  370. <TR>
  371. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  372. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  373. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  374. <TR ALIGN="center" VALIGN="top">
  375. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  376. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  377. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  378. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  379. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  380. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  381. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  382. </TR>
  383. </TABLE>
  384. </TD>
  385. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  386. <b>Bouncy Castle Cryptography Library 1.45</b></EM>
  387. </TD>
  388. </TR>
  389. <TR>
  390. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  391. &nbsp;<A HREF="../../../org/bouncycastle/asn1/ASN1Generator.html" title="class in org.bouncycastle.asn1"><B>PREV CLASS</B></A>&nbsp;
  392. &nbsp;<A HREF="../../../org/bouncycastle/asn1/ASN1Null.html" title="class in org.bouncycastle.asn1"><B>NEXT CLASS</B></A></FONT></TD>
  393. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  394. <A HREF="../../../index.html?org/bouncycastle/asn1/ASN1InputStream.html" target="_top"><B>FRAMES</B></A> &nbsp;
  395. &nbsp;<A HREF="ASN1InputStream.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  396. &nbsp;<SCRIPT type="text/javascript">
  397. <!--
  398. if(window==top) {
  399. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  400. }
  401. //-->
  402. </SCRIPT>
  403. <NOSCRIPT>
  404. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  405. </NOSCRIPT>
  406. </FONT></TD>
  407. </TR>
  408. <TR>
  409. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  410. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.io.FilterInputStream">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  411. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  412. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  413. </TR>
  414. </TABLE>
  415. <A NAME="skip-navbar_bottom"></A>
  416. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  417. <HR>
  418. </BODY>
  419. </HTML>