/lib/bouncycastle/docs/org/bouncycastle/util/encoders/BufferedDecoder.html

https://bitbucket.org/arkban/somersault · HTML · 362 lines · 296 code · 42 blank · 24 comment · 0 complexity · c07eac4fcd03f4398a4b341741cf6361 MD5 · raw file

  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:41 EST 2010 -->
  6. <TITLE>
  7. BufferedDecoder (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="BufferedDecoder (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/util/encoders/Base64Encoder.html" title="class in org.bouncycastle.util.encoders"><B>PREV CLASS</B></A>&nbsp;
  50. &nbsp;<A HREF="../../../../org/bouncycastle/util/encoders/BufferedEncoder.html" title="class in org.bouncycastle.util.encoders"><B>NEXT CLASS</B></A></FONT></TD>
  51. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  52. <A HREF="../../../../index.html?org/bouncycastle/util/encoders/BufferedDecoder.html" target="_top"><B>FRAMES</B></A> &nbsp;
  53. &nbsp;<A HREF="BufferedDecoder.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="#field_summary">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;<A HREF="#field_detail">FIELD</A>&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.util.encoders</FONT>
  80. <BR>
  81. Class BufferedDecoder</H2>
  82. <PRE>
  83. java.lang.Object
  84. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.bouncycastle.util.encoders.BufferedDecoder</B>
  85. </PRE>
  86. <HR>
  87. <DL>
  88. <DT><PRE>public class <B>BufferedDecoder</B><DT>extends java.lang.Object</DL>
  89. </PRE>
  90. <P>
  91. a buffering class to allow translation from one format to another to
  92. be done in discrete chunks.
  93. <P>
  94. <P>
  95. <HR>
  96. <P>
  97. <!-- =========== FIELD SUMMARY =========== -->
  98. <A NAME="field_summary"><!-- --></A>
  99. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  100. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  101. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  102. <B>Field Summary</B></FONT></TH>
  103. </TR>
  104. <TR BGCOLOR="white" CLASS="TableRowColor">
  105. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  106. <CODE>protected &nbsp;byte[]</CODE></FONT></TD>
  107. <TD><CODE><B><A HREF="../../../../org/bouncycastle/util/encoders/BufferedDecoder.html#buf">buf</A></B></CODE>
  108. <BR>
  109. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  110. </TR>
  111. <TR BGCOLOR="white" CLASS="TableRowColor">
  112. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  113. <CODE>protected &nbsp;int</CODE></FONT></TD>
  114. <TD><CODE><B><A HREF="../../../../org/bouncycastle/util/encoders/BufferedDecoder.html#bufOff">bufOff</A></B></CODE>
  115. <BR>
  116. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  117. </TR>
  118. <TR BGCOLOR="white" CLASS="TableRowColor">
  119. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  120. <CODE>protected &nbsp;<A HREF="../../../../org/bouncycastle/util/encoders/Translator.html" title="interface in org.bouncycastle.util.encoders">Translator</A></CODE></FONT></TD>
  121. <TD><CODE><B><A HREF="../../../../org/bouncycastle/util/encoders/BufferedDecoder.html#translator">translator</A></B></CODE>
  122. <BR>
  123. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  124. </TR>
  125. </TABLE>
  126. &nbsp;
  127. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  128. <A NAME="constructor_summary"><!-- --></A>
  129. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  130. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  131. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  132. <B>Constructor Summary</B></FONT></TH>
  133. </TR>
  134. <TR BGCOLOR="white" CLASS="TableRowColor">
  135. <TD><CODE><B><A HREF="../../../../org/bouncycastle/util/encoders/BufferedDecoder.html#BufferedDecoder(org.bouncycastle.util.encoders.Translator, int)">BufferedDecoder</A></B>(<A HREF="../../../../org/bouncycastle/util/encoders/Translator.html" title="interface in org.bouncycastle.util.encoders">Translator</A>&nbsp;translator,
  136. int&nbsp;bufSize)</CODE>
  137. <BR>
  138. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  139. </TR>
  140. </TABLE>
  141. &nbsp;
  142. <!-- ========== METHOD SUMMARY =========== -->
  143. <A NAME="method_summary"><!-- --></A>
  144. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  145. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  146. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  147. <B>Method Summary</B></FONT></TH>
  148. </TR>
  149. <TR BGCOLOR="white" CLASS="TableRowColor">
  150. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  151. <CODE>&nbsp;int</CODE></FONT></TD>
  152. <TD><CODE><B><A HREF="../../../../org/bouncycastle/util/encoders/BufferedDecoder.html#processByte(byte, byte[], int)">processByte</A></B>(byte&nbsp;in,
  153. byte[]&nbsp;out,
  154. int&nbsp;outOff)</CODE>
  155. <BR>
  156. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  157. </TR>
  158. <TR BGCOLOR="white" CLASS="TableRowColor">
  159. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  160. <CODE>&nbsp;int</CODE></FONT></TD>
  161. <TD><CODE><B><A HREF="../../../../org/bouncycastle/util/encoders/BufferedDecoder.html#processBytes(byte[], int, int, byte[], int)">processBytes</A></B>(byte[]&nbsp;in,
  162. int&nbsp;inOff,
  163. int&nbsp;len,
  164. byte[]&nbsp;out,
  165. int&nbsp;outOff)</CODE>
  166. <BR>
  167. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  168. </TR>
  169. </TABLE>
  170. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  171. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  172. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  173. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  174. </TR>
  175. <TR BGCOLOR="white" CLASS="TableRowColor">
  176. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  177. </TR>
  178. </TABLE>
  179. &nbsp;
  180. <P>
  181. <!-- ============ FIELD DETAIL =========== -->
  182. <A NAME="field_detail"><!-- --></A>
  183. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  184. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  185. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  186. <B>Field Detail</B></FONT></TH>
  187. </TR>
  188. </TABLE>
  189. <A NAME="buf"><!-- --></A><H3>
  190. buf</H3>
  191. <PRE>
  192. protected byte[] <B>buf</B></PRE>
  193. <DL>
  194. <DL>
  195. </DL>
  196. </DL>
  197. <HR>
  198. <A NAME="bufOff"><!-- --></A><H3>
  199. bufOff</H3>
  200. <PRE>
  201. protected int <B>bufOff</B></PRE>
  202. <DL>
  203. <DL>
  204. </DL>
  205. </DL>
  206. <HR>
  207. <A NAME="translator"><!-- --></A><H3>
  208. translator</H3>
  209. <PRE>
  210. protected <A HREF="../../../../org/bouncycastle/util/encoders/Translator.html" title="interface in org.bouncycastle.util.encoders">Translator</A> <B>translator</B></PRE>
  211. <DL>
  212. <DL>
  213. </DL>
  214. </DL>
  215. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  216. <A NAME="constructor_detail"><!-- --></A>
  217. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  218. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  219. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  220. <B>Constructor Detail</B></FONT></TH>
  221. </TR>
  222. </TABLE>
  223. <A NAME="BufferedDecoder(org.bouncycastle.util.encoders.Translator, int)"><!-- --></A><H3>
  224. BufferedDecoder</H3>
  225. <PRE>
  226. public <B>BufferedDecoder</B>(<A HREF="../../../../org/bouncycastle/util/encoders/Translator.html" title="interface in org.bouncycastle.util.encoders">Translator</A>&nbsp;translator,
  227. int&nbsp;bufSize)</PRE>
  228. <DL>
  229. <DL>
  230. <DT><B>Parameters:</B><DD><CODE>translator</CODE> - the translator to use.<DD><CODE>bufSize</CODE> - amount of input to buffer for each chunk.</DL>
  231. </DL>
  232. <!-- ============ METHOD DETAIL ========== -->
  233. <A NAME="method_detail"><!-- --></A>
  234. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  235. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  236. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  237. <B>Method Detail</B></FONT></TH>
  238. </TR>
  239. </TABLE>
  240. <A NAME="processByte(byte, byte[], int)"><!-- --></A><H3>
  241. processByte</H3>
  242. <PRE>
  243. public int <B>processByte</B>(byte&nbsp;in,
  244. byte[]&nbsp;out,
  245. int&nbsp;outOff)</PRE>
  246. <DL>
  247. <DD><DL>
  248. </DL>
  249. </DD>
  250. </DL>
  251. <HR>
  252. <A NAME="processBytes(byte[], int, int, byte[], int)"><!-- --></A><H3>
  253. processBytes</H3>
  254. <PRE>
  255. public int <B>processBytes</B>(byte[]&nbsp;in,
  256. int&nbsp;inOff,
  257. int&nbsp;len,
  258. byte[]&nbsp;out,
  259. int&nbsp;outOff)</PRE>
  260. <DL>
  261. <DD><DL>
  262. </DL>
  263. </DD>
  264. </DL>
  265. <!-- ========= END OF CLASS DATA ========= -->
  266. <HR>
  267. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  268. <A NAME="navbar_bottom"><!-- --></A>
  269. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  270. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  271. <TR>
  272. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  273. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  274. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  275. <TR ALIGN="center" VALIGN="top">
  276. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  277. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  278. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  279. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  280. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  281. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  282. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  283. </TR>
  284. </TABLE>
  285. </TD>
  286. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  287. <b>Bouncy Castle Cryptography Library 1.45</b></EM>
  288. </TD>
  289. </TR>
  290. <TR>
  291. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  292. &nbsp;<A HREF="../../../../org/bouncycastle/util/encoders/Base64Encoder.html" title="class in org.bouncycastle.util.encoders"><B>PREV CLASS</B></A>&nbsp;
  293. &nbsp;<A HREF="../../../../org/bouncycastle/util/encoders/BufferedEncoder.html" title="class in org.bouncycastle.util.encoders"><B>NEXT CLASS</B></A></FONT></TD>
  294. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  295. <A HREF="../../../../index.html?org/bouncycastle/util/encoders/BufferedDecoder.html" target="_top"><B>FRAMES</B></A> &nbsp;
  296. &nbsp;<A HREF="BufferedDecoder.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  297. &nbsp;<SCRIPT type="text/javascript">
  298. <!--
  299. if(window==top) {
  300. document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  301. }
  302. //-->
  303. </SCRIPT>
  304. <NOSCRIPT>
  305. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  306. </NOSCRIPT>
  307. </FONT></TD>
  308. </TR>
  309. <TR>
  310. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  311. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  312. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  313. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  314. </TR>
  315. </TABLE>
  316. <A NAME="skip-navbar_bottom"></A>
  317. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  318. <HR>
  319. </BODY>
  320. </HTML>