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