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.5.0) on Thu May 15 17:17:33 EDT 2008 --> 6<TITLE> 7FastInputStream (Oracle - Berkeley DB Java API) 8</TITLE> 9 10<META NAME="keywords" CONTENT="com.sleepycat.util.FastInputStream class"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="/style.css" TITLE="Style"> 13 14<SCRIPT type="text/javascript"> 15function windowTitle() 16{ 17 parent.document.title="FastInputStream (Oracle - Berkeley DB Java API)"; 18} 19</SCRIPT> 20<NOSCRIPT> 21</NOSCRIPT> 22 23</HEAD> 24 25<BODY BGCOLOR="white" onload="windowTitle();"> 26 27 28<!-- ========= START OF TOP NAVBAR ======= --> 29<A NAME="navbar_top"><!-- --></A> 30<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 31<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 32<TR> 33<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 34<A NAME="navbar_top_firstrow"><!-- --></A> 35<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 36 <TR ALIGN="center" VALIGN="top"> 37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FastInputStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 45 </TR> 46</TABLE> 47</TD> 48<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 49<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM> 50</TD> 51</TR> 52 53<TR> 54<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 55 <A HREF="/com/sleepycat/util/ExceptionWrapper.html" title="interface in com.sleepycat.util"><B>PREV CLASS</B></A> 56 <A HREF="/com/sleepycat/util/FastOutputStream.html" title="class in com.sleepycat.util"><B>NEXT CLASS</B></A></FONT></TD> 57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 58 <A HREF="/index.html?com/sleepycat/util/FastInputStream.html" target="_top"><B>FRAMES</B></A> 59 <A HREF="FastInputStream.html" target="_top"><B>NO FRAMES</B></A> 60 <SCRIPT type="text/javascript"> 61 <!-- 62 if(window==top) { 63 document.writeln('<A HREF="/allclasses-noframe.html"><B>All Classes</B></A>'); 64 } 65 //--> 66</SCRIPT> 67<NOSCRIPT> 68 <A HREF="/allclasses-noframe.html"><B>All Classes</B></A> 69</NOSCRIPT> 70 71 72</FONT></TD> 73</TR> 74<TR> 75<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 76 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 78DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 79</TR> 80</TABLE> 81<A NAME="skip-navbar_top"></A> 82<!-- ========= END OF TOP NAVBAR ========= --> 83 84<HR> 85<!-- ======== START OF CLASS DATA ======== --> 86<H2> 87<FONT SIZE="-1"> 88com.sleepycat.util</FONT> 89<BR> 90Class FastInputStream</H2> 91<PRE> 92<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> 93 <IMG SRC="/resources/inherit.gif" ALT="extended by "><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">java.io.InputStream</A> 94 <IMG SRC="/resources/inherit.gif" ALT="extended by "><B>com.sleepycat.util.FastInputStream</B> 95</PRE> 96<DL> 97<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/Closeable.html" title="class or interface in java.io">Closeable</A></DD> 98</DL> 99<DL> 100<DT><B>Direct Known Subclasses:</B> <DD><A HREF="/com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple">TupleInput</A></DD> 101</DL> 102<HR> 103<DL> 104<DT><PRE>public class <B>FastInputStream</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A></DL> 105</PRE> 106 107<P> 108A replacement for ByteArrayInputStream that does not synchronize every 109 byte read. 110 111 <p>This class extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io"><CODE>InputStream</CODE></A> and its <code>read()</code> 112 methods allow it to be used as a standard input stream. In addition, it 113 provides <code>readFast()</code> methods that are not declared to throw 114 <code>IOException</code>. <code>IOException</code> is never thrown by this 115 class.</p> 116<P> 117 118<P> 119<HR> 120 121<P> 122<!-- =========== FIELD SUMMARY =========== --> 123 124<A NAME="field_summary"><!-- --></A> 125<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 126<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 127<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 128<B>Field Summary</B></FONT></TH> 129</TR> 130<TR BGCOLOR="white" CLASS="TableRowColor"> 131<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 132<CODE>protected byte[]</CODE></FONT></TD> 133<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#buf">buf</A></B></CODE> 134 135<BR> 136 </TD> 137</TR> 138<TR BGCOLOR="white" CLASS="TableRowColor"> 139<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 140<CODE>protected int</CODE></FONT></TD> 141<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#len">len</A></B></CODE> 142 143<BR> 144 </TD> 145</TR> 146<TR BGCOLOR="white" CLASS="TableRowColor"> 147<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 148<CODE>protected int</CODE></FONT></TD> 149<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#mark">mark</A></B></CODE> 150 151<BR> 152 </TD> 153</TR> 154<TR BGCOLOR="white" CLASS="TableRowColor"> 155<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 156<CODE>protected int</CODE></FONT></TD> 157<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#off">off</A></B></CODE> 158 159<BR> 160 </TD> 161</TR> 162</TABLE> 163 164<!-- ======== CONSTRUCTOR SUMMARY ======== --> 165 166<A NAME="constructor_summary"><!-- --></A> 167<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 168<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 169<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 170<B>Constructor Summary</B></FONT></TH> 171</TR> 172<TR BGCOLOR="white" CLASS="TableRowColor"> 173<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#FastInputStream(byte[])">FastInputStream</A></B>(byte[] buffer)</CODE> 174 175<BR> 176 Creates an input stream.</TD> 177</TR> 178<TR BGCOLOR="white" CLASS="TableRowColor"> 179<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#FastInputStream(byte[], int, int)">FastInputStream</A></B>(byte[] buffer, 180 int offset, 181 int length)</CODE> 182 183<BR> 184 Creates an input stream.</TD> 185</TR> 186</TABLE> 187 188<!-- ========== METHOD SUMMARY =========== --> 189 190<A NAME="method_summary"><!-- --></A> 191<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 192<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 193<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 194<B>Method Summary</B></FONT></TH> 195</TR> 196<TR BGCOLOR="white" CLASS="TableRowColor"> 197<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 198<CODE> int</CODE></FONT></TD> 199<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#available()">available</A></B>()</CODE> 200 201<BR> 202 </TD> 203</TR> 204<TR BGCOLOR="white" CLASS="TableRowColor"> 205<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 206<CODE> byte[]</CODE></FONT></TD> 207<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#getBufferBytes()">getBufferBytes</A></B>()</CODE> 208 209<BR> 210 Returns the underlying data being read.</TD> 211</TR> 212<TR BGCOLOR="white" CLASS="TableRowColor"> 213<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 214<CODE> int</CODE></FONT></TD> 215<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#getBufferLength()">getBufferLength</A></B>()</CODE> 216 217<BR> 218 Returns the end of the buffer being read.</TD> 219</TR> 220<TR BGCOLOR="white" CLASS="TableRowColor"> 221<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 222<CODE> int</CODE></FONT></TD> 223<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#getBufferOffset()">getBufferOffset</A></B>()</CODE> 224 225<BR> 226 Returns the offset at which data is being read from the buffer.</TD> 227</TR> 228<TR BGCOLOR="white" CLASS="TableRowColor"> 229<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 230<CODE> void</CODE></FONT></TD> 231<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#mark(int)">mark</A></B>(int readLimit)</CODE> 232 233<BR> 234 </TD> 235</TR> 236<TR BGCOLOR="white" CLASS="TableRowColor"> 237<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 238<CODE> boolean</CODE></FONT></TD> 239<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#markSupported()">markSupported</A></B>()</CODE> 240 241<BR> 242 </TD> 243</TR> 244<TR BGCOLOR="white" CLASS="TableRowColor"> 245<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 246<CODE> int</CODE></FONT></TD> 247<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#read()">read</A></B>()</CODE> 248 249<BR> 250 </TD> 251</TR> 252<TR BGCOLOR="white" CLASS="TableRowColor"> 253<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 254<CODE> int</CODE></FONT></TD> 255<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#read(byte[])">read</A></B>(byte[] toBuf)</CODE> 256 257<BR> 258 </TD> 259</TR> 260<TR BGCOLOR="white" CLASS="TableRowColor"> 261<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 262<CODE> int</CODE></FONT></TD> 263<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#read(byte[], int, int)">read</A></B>(byte[] toBuf, 264 int offset, 265 int length)</CODE> 266 267<BR> 268 </TD> 269</TR> 270<TR BGCOLOR="white" CLASS="TableRowColor"> 271<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 272<CODE> int</CODE></FONT></TD> 273<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#readFast()">readFast</A></B>()</CODE> 274 275<BR> 276 Equivalent to <code>read()<code> but does not throw 277 <code>IOException</code>.</TD> 278</TR> 279<TR BGCOLOR="white" CLASS="TableRowColor"> 280<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 281<CODE> int</CODE></FONT></TD> 282<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#readFast(byte[])">readFast</A></B>(byte[] toBuf)</CODE> 283 284<BR> 285 Equivalent to <code>read(byte[])<code> but does not throw 286 <code>IOException</code>.</TD> 287</TR> 288<TR BGCOLOR="white" CLASS="TableRowColor"> 289<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 290<CODE> int</CODE></FONT></TD> 291<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#readFast(byte[], int, int)">readFast</A></B>(byte[] toBuf, 292 int offset, 293 int length)</CODE> 294 295<BR> 296 Equivalent to <code>read(byte[],int,int)<code> but does not throw 297 <code>IOException</code>.</TD> 298</TR> 299<TR BGCOLOR="white" CLASS="TableRowColor"> 300<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 301<CODE> void</CODE></FONT></TD> 302<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#reset()">reset</A></B>()</CODE> 303 304<BR> 305 </TD> 306</TR> 307<TR BGCOLOR="white" CLASS="TableRowColor"> 308<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 309<CODE> long</CODE></FONT></TD> 310<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#skip(long)">skip</A></B>(long count)</CODE> 311 312<BR> 313 </TD> 314</TR> 315<TR BGCOLOR="white" CLASS="TableRowColor"> 316<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 317<CODE> void</CODE></FONT></TD> 318<TD><CODE><B><A HREF="/com/sleepycat/util/FastInputStream.html#skipFast(int)">skipFast</A></B>(int count)</CODE> 319 320<BR> 321 Equivalent to <code>skip()<code> but takes an int parameter instead of a 322 long, and does not check whether the count given is larger than the 323 number of remaining bytes.</TD> 324</TR> 325</TABLE> 326 <A NAME="methods_inherited_from_class_java.io.InputStream"><!-- --></A> 327<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 328<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 329<TH ALIGN="left"><B>Methods inherited from class java.io.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A></B></TH> 330</TR> 331<TR BGCOLOR="white" CLASS="TableRowColor"> 332<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html#close()" title="class or interface in java.io">close</A></CODE></TD> 333</TR> 334</TABLE> 335 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 336<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 337<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 338<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH> 339</TR> 340<TR BGCOLOR="white" CLASS="TableRowColor"> 341<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> 342</TR> 343</TABLE> 344 345<P> 346 347<!-- ============ FIELD DETAIL =========== --> 348 349<A NAME="field_detail"><!-- --></A> 350<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 351<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 352<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 353<B>Field Detail</B></FONT></TH> 354</TR> 355</TABLE> 356 357<A NAME="len"><!-- --></A><H3> 358len</H3> 359<PRE> 360protected int <B>len</B></PRE> 361<DL> 362<DL> 363</DL> 364</DL> 365<HR> 366 367<A NAME="off"><!-- --></A><H3> 368off</H3> 369<PRE> 370protected int <B>off</B></PRE> 371<DL> 372<DL> 373</DL> 374</DL> 375<HR> 376 377<A NAME="mark"><!-- --></A><H3> 378mark</H3> 379<PRE> 380protected int <B>mark</B></PRE> 381<DL> 382<DL> 383</DL> 384</DL> 385<HR> 386 387<A NAME="buf"><!-- --></A><H3> 388buf</H3> 389<PRE> 390protected byte[] <B>buf</B></PRE> 391<DL> 392<DL> 393</DL> 394</DL> 395 396<!-- ========= CONSTRUCTOR DETAIL ======== --> 397 398<A NAME="constructor_detail"><!-- --></A> 399<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 400<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 401<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 402<B>Constructor Detail</B></FONT></TH> 403</TR> 404</TABLE> 405 406<A NAME="FastInputStream(byte[])"><!-- --></A><H3> 407FastInputStream</H3> 408<PRE> 409public <B>FastInputStream</B>(byte[] buffer)</PRE> 410<DL> 411<DD>Creates an input stream. 412<P> 413<DL> 414<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the data to read.</DL> 415</DL> 416<HR> 417 418<A NAME="FastInputStream(byte[], int, int)"><!-- --></A><H3> 419FastInputStream</H3> 420<PRE> 421public <B>FastInputStream</B>(byte[] buffer, 422 int offset, 423 int length)</PRE> 424<DL> 425<DD>Creates an input stream. 426<P> 427<DL> 428<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the data to read.<DD><CODE>offset</CODE> - the byte offset at which to begin reading.<DD><CODE>length</CODE> - the number of bytes to read.</DL> 429</DL> 430 431<!-- ============ METHOD DETAIL ========== --> 432 433<A NAME="method_detail"><!-- --></A> 434<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 435<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 436<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 437<B>Method Detail</B></FONT></TH> 438</TR> 439</TABLE> 440 441<A NAME="available()"><!-- --></A><H3> 442available</H3> 443<PRE> 444public int <B>available</B>()</PRE> 445<DL> 446<DD><DL> 447<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html#available()" title="class or interface in java.io">available</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A></CODE></DL> 448</DD> 449<DD><DL> 450</DL> 451</DD> 452</DL> 453<HR> 454 455<A NAME="markSupported()"><!-- --></A><H3> 456markSupported</H3> 457<PRE> 458public boolean <B>markSupported</B>()</PRE> 459<DL> 460<DD><DL> 461<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html#markSupported()" title="class or interface in java.io">markSupported</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A></CODE></DL> 462</DD> 463<DD><DL> 464</DL> 465</DD> 466</DL> 467<HR> 468 469<A NAME="mark(int)"><!-- --></A><H3> 470mark</H3> 471<PRE> 472public void <B>mark</B>(int readLimit)</PRE> 473<DL> 474<DD><DL> 475<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html#mark(int)" title="class or interface in java.io">mark</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A></CODE></DL> 476</DD> 477<DD><DL> 478</DL> 479</DD> 480</DL> 481<HR> 482 483<A NAME="reset()"><!-- --></A><H3> 484reset</H3> 485<PRE> 486public void <B>reset</B>()</PRE> 487<DL> 488<DD><DL> 489<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html#reset()" title="class or interface in java.io">reset</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A></CODE></DL> 490</DD> 491<DD><DL> 492</DL> 493</DD> 494</DL> 495<HR> 496 497<A NAME="skip(long)"><!-- --></A><H3> 498skip</H3> 499<PRE> 500public long <B>skip</B>(long count)</PRE> 501<DL> 502<DD><DL> 503<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html#skip(long)" title="class or interface in java.io">skip</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A></CODE></DL> 504</DD> 505<DD><DL> 506</DL> 507</DD> 508</DL> 509<HR> 510 511<A NAME="read()"><!-- --></A><H3> 512read</H3> 513<PRE> 514public int <B>read</B>() 515 throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE> 516<DL> 517<DD><DL> 518<DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html#read()" title="class or interface in java.io">read</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A></CODE></DL> 519</DD> 520<DD><DL> 521 522<DT><B>Throws:</B> 523<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL> 524</DD> 525</DL> 526<HR> 527 528<A NAME="read(byte[])"><!-- --></A><H3> 529read</H3> 530<PRE> 531public int <B>read</B>(byte[] toBuf) 532 throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE> 533<DL> 534<DD><DL> 535<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html#read(byte[])" title="class or interface in java.io">read</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A></CODE></DL> 536</DD> 537<DD><DL> 538 539<DT><B>Throws:</B> 540<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL> 541</DD> 542</DL> 543<HR> 544 545<A NAME="read(byte[], int, int)"><!-- --></A><H3> 546read</H3> 547<PRE> 548public int <B>read</B>(byte[] toBuf, 549 int offset, 550 int length) 551 throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE> 552<DL> 553<DD><DL> 554<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html#read(byte[], int, int)" title="class or interface in java.io">read</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A></CODE></DL> 555</DD> 556<DD><DL> 557 558<DT><B>Throws:</B> 559<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL> 560</DD> 561</DL> 562<HR> 563 564<A NAME="skipFast(int)"><!-- --></A><H3> 565skipFast</H3> 566<PRE> 567public final void <B>skipFast</B>(int count)</PRE> 568<DL> 569<DD>Equivalent to <code>skip()<code> but takes an int parameter instead of a 570 long, and does not check whether the count given is larger than the 571 number of remaining bytes. 572<P> 573<DD><DL> 574<DT><B>See Also:</B><DD><A HREF="/com/sleepycat/util/FastInputStream.html#skip(long)"><CODE>skip(long)</CODE></A></DL> 575</DD> 576</DL> 577<HR> 578 579<A NAME="readFast()"><!-- --></A><H3> 580readFast</H3> 581<PRE> 582public final int <B>readFast</B>()</PRE> 583<DL> 584<DD>Equivalent to <code>read()<code> but does not throw 585 <code>IOException</code>. 586<P> 587<DD><DL> 588<DT><B>See Also:</B><DD><A HREF="/com/sleepycat/util/FastInputStream.html#read()"><CODE>read()</CODE></A></DL> 589</DD> 590</DL> 591<HR> 592 593<A NAME="readFast(byte[])"><!-- --></A><H3> 594readFast</H3> 595<PRE> 596public final int <B>readFast</B>(byte[] toBuf)</PRE> 597<DL> 598<DD>Equivalent to <code>read(byte[])<code> but does not throw 599 <code>IOException</code>. 600<P> 601<DD><DL> 602<DT><B>See Also:</B><DD><A HREF="/com/sleepycat/util/FastInputStream.html#read(byte[])"><CODE>read(byte[])</CODE></A></DL> 603</DD> 604</DL> 605<HR> 606 607<A NAME="readFast(byte[], int, int)"><!-- --></A><H3> 608readFast</H3> 609<PRE> 610public final int <B>readFast</B>(byte[] toBuf, 611 int offset, 612 int length)</PRE> 613<DL> 614<DD>Equivalent to <code>read(byte[],int,int)<code> but does not throw 615 <code>IOException</code>. 616<P> 617<DD><DL> 618<DT><B>See Also:</B><DD><A HREF="/com/sleepycat/util/FastInputStream.html#read(byte[], int, int)"><CODE>read(byte[],int,int)</CODE></A></DL> 619</DD> 620</DL> 621<HR> 622 623<A NAME="getBufferBytes()"><!-- --></A><H3> 624getBufferBytes</H3> 625<PRE> 626public final byte[] <B>getBufferBytes</B>()</PRE> 627<DL> 628<DD>Returns the underlying data being read. 629<P> 630<DD><DL> 631 632<DT><B>Returns:</B><DD>the underlying data.</DL> 633</DD> 634</DL> 635<HR> 636 637<A NAME="getBufferOffset()"><!-- --></A><H3> 638getBufferOffset</H3> 639<PRE> 640public final int <B>getBufferOffset</B>()</PRE> 641<DL> 642<DD>Returns the offset at which data is being read from the buffer. 643<P> 644<DD><DL> 645 646<DT><B>Returns:</B><DD>the offset at which data is being read.</DL> 647</DD> 648</DL> 649<HR> 650 651<A NAME="getBufferLength()"><!-- --></A><H3> 652getBufferLength</H3> 653<PRE> 654public final int <B>getBufferLength</B>()</PRE> 655<DL> 656<DD>Returns the end of the buffer being read. 657<P> 658<DD><DL> 659 660<DT><B>Returns:</B><DD>the end of the buffer.</DL> 661</DD> 662</DL> 663<!-- ========= END OF CLASS DATA ========= --> 664<HR> 665 666 667<!-- ======= START OF BOTTOM NAVBAR ====== --> 668<A NAME="navbar_bottom"><!-- --></A> 669<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 670<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 671<TR> 672<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 673<A NAME="navbar_bottom_firstrow"><!-- --></A> 674<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 675 <TR ALIGN="center" VALIGN="top"> 676 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 677 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 678 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 679 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FastInputStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 680 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 681 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 682 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 683 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 684 </TR> 685</TABLE> 686</TD> 687<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 688<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM> 689</TD> 690</TR> 691 692<TR> 693<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 694 <A HREF="/com/sleepycat/util/ExceptionWrapper.html" title="interface in com.sleepycat.util"><B>PREV CLASS</B></A> 695 <A HREF="/com/sleepycat/util/FastOutputStream.html" title="class in com.sleepycat.util"><B>NEXT CLASS</B></A></FONT></TD> 696<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 697 <A HREF="/index.html?com/sleepycat/util/FastInputStream.html" target="_top"><B>FRAMES</B></A> 698 <A HREF="FastInputStream.html" target="_top"><B>NO FRAMES</B></A> 699 <SCRIPT type="text/javascript"> 700 <!-- 701 if(window==top) { 702 document.writeln('<A HREF="/allclasses-noframe.html"><B>All Classes</B></A>'); 703 } 704 //--> 705</SCRIPT> 706<NOSCRIPT> 707 <A HREF="/allclasses-noframe.html"><B>All Classes</B></A> 708</NOSCRIPT> 709 710 711</FONT></TD> 712</TR> 713<TR> 714<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 715 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 716<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 717DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 718</TR> 719</TABLE> 720<A NAME="skip-navbar_bottom"></A> 721<!-- ======== END OF BOTTOM NAVBAR ======= --> 722 723<HR> 724<font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 725</BODY> 726</HTML> 727