1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.5.0_09) on Tue Jan 08 20:46:02 GMT 2008 -->
7 DataInputStream (leJOS NXT API documentation)
10 <META NAME="keywords" CONTENT="java.io.DataInputStream class">
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
14 <SCRIPT type="text/javascript">
15 function windowTitle()
17 parent.document.title="DataInputStream (leJOS NXT API documentation)";
25 <BODY BGCOLOR="white" onload="windowTitle();">
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="">
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="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
47 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
53 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54 PREV CLASS
55 <A HREF="../../java/io/DataOutputStream.html" title="class in java.io"><B>NEXT CLASS</B></A></FONT></TD>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../index.html?java/io/DataInputStream.html" target="_top"><B>FRAMES</B></A>
58 <A HREF="DataInputStream.html" target="_top"><B>NO FRAMES</B></A>
59 <SCRIPT type="text/javascript">
62 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
67 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
80 <A NAME="skip-navbar_top"></A>
81 <!-- ========= END OF TOP NAVBAR ========= -->
84 <!-- ======== START OF CLASS DATA ======== -->
89 Class DataInputStream</H2>
91 <A HREF="../../java/lang/Object.html" title="class in java.lang">java.lang.Object</A>
92 <IMG SRC="../../resources/inherit.gif" ALT="extended by "><A HREF="../../java/io/InputStream.html" title="class in java.io">java.io.InputStream</A>
93 <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>java.io.DataInputStream</B>
97 <DT><PRE>public class <B>DataInputStream</B><DT>extends <A HREF="../../java/io/InputStream.html" title="class in java.io">InputStream</A></DL>
101 Reads java data types transmitted as bytes over an InputStream.
108 <!-- =========== FIELD SUMMARY =========== -->
110 <A NAME="field_summary"><!-- --></A>
111 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
112 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
113 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
114 <B>Field Summary</B></FONT></TH>
116 <TR BGCOLOR="white" CLASS="TableRowColor">
117 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
118 <CODE>protected <A HREF="../../java/io/InputStream.html" title="class in java.io">InputStream</A></CODE></FONT></TD>
119 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#in">in</A></B></CODE>
122 </TD>
126 <!-- ======== 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>
134 <TR BGCOLOR="white" CLASS="TableRowColor">
135 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#DataInputStream(java.io.InputStream)">DataInputStream</A></B>(<A HREF="../../java/io/InputStream.html" title="class in java.io">InputStream</A> in)</CODE>
138 </TD>
142 <!-- ========== METHOD SUMMARY =========== -->
144 <A NAME="method_summary"><!-- --></A>
145 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
146 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
147 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
148 <B>Method Summary</B></FONT></TH>
150 <TR BGCOLOR="white" CLASS="TableRowColor">
151 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152 <CODE> void</CODE></FONT></TD>
153 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#close()">close</A></B>()</CODE>
156 Closes this input stream and releases any system resources associated
157 with the stream.</TD>
159 <TR BGCOLOR="white" CLASS="TableRowColor">
160 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
161 <CODE> int</CODE></FONT></TD>
162 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#read()">read</A></B>()</CODE>
165 Reads the next byte of data from this input stream.</TD>
167 <TR BGCOLOR="white" CLASS="TableRowColor">
168 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
169 <CODE> int</CODE></FONT></TD>
170 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#read(byte[])">read</A></B>(byte[] b)</CODE>
173 Reads some number of bytes from the input stream and stores them into
174 the buffer array <code>b</code>.</TD>
176 <TR BGCOLOR="white" CLASS="TableRowColor">
177 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
178 <CODE> int</CODE></FONT></TD>
179 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#read(byte[], int, int)">read</A></B>(byte[] b,
184 Reads up to <code>len</code> bytes of data from the input stream into
185 an array of bytes.</TD>
187 <TR BGCOLOR="white" CLASS="TableRowColor">
188 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189 <CODE> boolean</CODE></FONT></TD>
190 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readBoolean()">readBoolean</A></B>()</CODE>
193 </TD>
195 <TR BGCOLOR="white" CLASS="TableRowColor">
196 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197 <CODE> byte</CODE></FONT></TD>
198 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readByte()">readByte</A></B>()</CODE>
201 </TD>
203 <TR BGCOLOR="white" CLASS="TableRowColor">
204 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205 <CODE> char</CODE></FONT></TD>
206 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readChar()">readChar</A></B>()</CODE>
209 </TD>
211 <TR BGCOLOR="white" CLASS="TableRowColor">
212 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
213 <CODE> float</CODE></FONT></TD>
214 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readFloat()">readFloat</A></B>()</CODE>
217 </TD>
219 <TR BGCOLOR="white" CLASS="TableRowColor">
220 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
221 <CODE> int</CODE></FONT></TD>
222 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readInt()">readInt</A></B>()</CODE>
225 </TD>
227 <TR BGCOLOR="white" CLASS="TableRowColor">
228 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
229 <CODE> <A HREF="../../java/lang/String.html" title="class in java.lang">String</A></CODE></FONT></TD>
230 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readLine()">readLine</A></B>()</CODE>
233 </TD>
235 <TR BGCOLOR="white" CLASS="TableRowColor">
236 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
237 <CODE> short</CODE></FONT></TD>
238 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readShort()">readShort</A></B>()</CODE>
241 </TD>
244 <A NAME="methods_inherited_from_class_java.io.InputStream"><!-- --></A>
245 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
246 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
247 <TH ALIGN="left"><B>Methods inherited from class java.io.<A HREF="../../java/io/InputStream.html" title="class in java.io">InputStream</A></B></TH>
249 <TR BGCOLOR="white" CLASS="TableRowColor">
250 <TD><CODE><A HREF="../../java/io/InputStream.html#available()">available</A>, <A HREF="../../java/io/InputStream.html#mark(int)">mark</A>, <A HREF="../../java/io/InputStream.html#markSupported()">markSupported</A>, <A HREF="../../java/io/InputStream.html#reset()">reset</A>, <A HREF="../../java/io/InputStream.html#skip(long)">skip</A></CODE></TD>
253 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
254 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
255 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
256 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></B></TH>
258 <TR BGCOLOR="white" CLASS="TableRowColor">
259 <TD><CODE><A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A></CODE></TD>
265 <!-- ============ FIELD DETAIL =========== -->
267 <A NAME="field_detail"><!-- --></A>
268 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
269 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
270 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
271 <B>Field Detail</B></FONT></TH>
275 <A NAME="in"><!-- --></A><H3>
278 protected <A HREF="../../java/io/InputStream.html" title="class in java.io">InputStream</A> <B>in</B></PRE>
284 <!-- ========= CONSTRUCTOR DETAIL ======== -->
286 <A NAME="constructor_detail"><!-- --></A>
287 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
288 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
289 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
290 <B>Constructor Detail</B></FONT></TH>
294 <A NAME="DataInputStream(java.io.InputStream)"><!-- --></A><H3>
297 public <B>DataInputStream</B>(<A HREF="../../java/io/InputStream.html" title="class in java.io">InputStream</A> in)</PRE>
301 <!-- ============ METHOD DETAIL ========== -->
303 <A NAME="method_detail"><!-- --></A>
304 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
305 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
306 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
307 <B>Method Detail</B></FONT></TH>
311 <A NAME="read()"><!-- --></A><H3>
314 public int <B>read</B>()
315 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
317 <DD>Reads the next byte of data from this input stream. The value
318 byte is returned as an <code>int</code> in the range
319 <code>0</code> to <code>255</code>. If no byte is available
320 because the end of the stream has been reached, the value
321 <code>-1</code> is returned. This method blocks until input data
322 is available, the end of the stream is detected, or an exception
326 simply performs <code>in.read()</code> and returns the result.
329 <DT><B>Specified by:</B><DD><CODE><A HREF="../../java/io/InputStream.html#read()">read</A></CODE> in class <CODE><A HREF="../../java/io/InputStream.html" title="class in java.io">InputStream</A></CODE></DL>
333 <DT><B>Returns:</B><DD>the next byte of data, or <code>-1</code> if the end of the
336 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE> - if an I/O error occurs.<DT><B>See Also:</B><DD><CODE>FilterInputStream.in</CODE></DL>
341 <A NAME="read(byte[])"><!-- --></A><H3>
344 public final int <B>read</B>(byte[] b)
345 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
347 <DD><B>Description copied from class: <CODE><A HREF="../../java/io/InputStream.html#read(byte[])">InputStream</A></CODE></B></DD>
348 <DD>Reads some number of bytes from the input stream and stores them into
349 the buffer array <code>b</code>. The number of bytes actually read is
350 returned as an integer. This method blocks until input data is
351 available, end of file is detected, or an exception is thrown.
353 <p> If <code>b</code> is <code>null</code>, a
354 <code>NullPointerException</code> is thrown. If the length of
355 <code>b</code> is zero, then no bytes are read and <code>0</code> is
356 returned; otherwise, there is an attempt to read at least one byte. If
357 no byte is available because the stream is at end of file, the value
358 <code>-1</code> is returned; otherwise, at least one byte is read and
359 stored into <code>b</code>.
361 <p> The first byte read is stored into element <code>b[0]</code>, the
362 next one into <code>b[1]</code>, and so on. The number of bytes read is,
363 at most, equal to the length of <code>b</code>. Let <i>k</i> be the
364 number of bytes actually read; these bytes will be stored in elements
365 <code>b[0]</code> through <code>b[</code><i>k</i><code>-1]</code>,
366 leaving elements <code>b[</code><i>k</i><code>]</code> through
367 <code>b[b.length-1]</code> unaffected.
369 <p> If the first byte cannot be read for any reason other than end of
370 file, then an <code>IOException</code> is thrown. In particular, an
371 <code>IOException</code> is thrown if the input stream has been closed.
373 <p> The <code>read(b)</code> method for class <code>InputStream</code>
374 has the same effect as: <pre><code> read(b, 0, b.length) </code></pre>
377 <DT><B>Overrides:</B><DD><CODE><A HREF="../../java/io/InputStream.html#read(byte[])">read</A></CODE> in class <CODE><A HREF="../../java/io/InputStream.html" title="class in java.io">InputStream</A></CODE></DL>
380 <DT><B>Parameters:</B><DD><CODE>b</CODE> - the buffer into which the data is read.
381 <DT><B>Returns:</B><DD>the total number of bytes read into the buffer, or
382 <code>-1</code> is there is no more data because the end of
383 the stream has been reached.
385 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE> - if an I/O error occurs.<DT><B>See Also:</B><DD><A HREF="../../java/io/InputStream.html#read(byte[], int, int)"><CODE>InputStream.read(byte[], int, int)</CODE></A></DL>
390 <A NAME="read(byte[], int, int)"><!-- --></A><H3>
393 public final int <B>read</B>(byte[] b,
396 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
398 <DD><B>Description copied from class: <CODE><A HREF="../../java/io/InputStream.html#read(byte[], int, int)">InputStream</A></CODE></B></DD>
399 <DD>Reads up to <code>len</code> bytes of data from the input stream into
400 an array of bytes. An attempt is made to read as many as
401 <code>len</code> bytes, but a smaller number may be read, possibly
402 zero. The number of bytes actually read is returned as an integer.
404 <p> This method blocks until input data is available, end of file is
405 detected, or an exception is thrown.
407 <p> If <code>b</code> is <code>null</code>, a
408 <code>NullPointerException</code> is thrown.
410 <p> If <code>off</code> is negative, or <code>len</code> is negative, or
411 <code>off+len</code> is greater than the length of the array
412 <code>b</code>, then an <code>IndexOutOfBoundsException</code> is
415 <p> If <code>len</code> is zero, then no bytes are read and
416 <code>0</code> is returned; otherwise, there is an attempt to read at
417 least one byte. If no byte is available because the stream is at end of
418 file, the value <code>-1</code> is returned; otherwise, at least one
419 byte is read and stored into <code>b</code>.
421 <p> The first byte read is stored into element <code>b[off]</code>, the
422 next one into <code>b[off+1]</code>, and so on. The number of bytes read
423 is, at most, equal to <code>len</code>. Let <i>k</i> be the number of
424 bytes actually read; these bytes will be stored in elements
425 <code>b[off]</code> through <code>b[off+</code><i>k</i><code>-1]</code>,
426 leaving elements <code>b[off+</code><i>k</i><code>]</code> through
427 <code>b[off+len-1]</code> unaffected.
429 <p> In every case, elements <code>b[0]</code> through
430 <code>b[off]</code> and elements <code>b[off+len]</code> through
431 <code>b[b.length-1]</code> are unaffected.
433 <p> If the first byte cannot be read for any reason other than end of
434 file, then an <code>IOException</code> is thrown. In particular, an
435 <code>IOException</code> is thrown if the input stream has been closed.
437 <p> The <code>read(b,</code> <code>off,</code> <code>len)</code> method
438 for class <code>InputStream</code> simply calls the method
439 <code>read()</code> repeatedly. If the first such call results in an
440 <code>IOException</code>, that exception is returned from the call to
441 the <code>read(b,</code> <code>off,</code> <code>len)</code> method. If
442 any subsequent call to <code>read()</code> results in a
443 <code>IOException</code>, the exception is caught and treated as if it
444 were end of file; the bytes read up to that point are stored into
445 <code>b</code> and the number of bytes read before the exception
446 occurred is returned. Subclasses are encouraged to provide a more
447 efficient implementation of this method.
450 <DT><B>Overrides:</B><DD><CODE><A HREF="../../java/io/InputStream.html#read(byte[], int, int)">read</A></CODE> in class <CODE><A HREF="../../java/io/InputStream.html" title="class in java.io">InputStream</A></CODE></DL>
453 <DT><B>Parameters:</B><DD><CODE>b</CODE> - the buffer into which the data is read.<DD><CODE>off</CODE> - the start offset in array <code>b</code>
454 at which the data is written.<DD><CODE>len</CODE> - the maximum number of bytes to read.
455 <DT><B>Returns:</B><DD>the total number of bytes read into the buffer, or
456 <code>-1</code> if there is no more data because the end of
457 the stream has been reached.
459 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE> - if an I/O error occurs.<DT><B>See Also:</B><DD><A HREF="../../java/io/InputStream.html#read()"><CODE>InputStream.read()</CODE></A></DL>
464 <A NAME="readBoolean()"><!-- --></A><H3>
467 public final boolean <B>readBoolean</B>()
468 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
473 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
478 <A NAME="readByte()"><!-- --></A><H3>
481 public final byte <B>readByte</B>()
482 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
487 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
492 <A NAME="readShort()"><!-- --></A><H3>
495 public final short <B>readShort</B>()
496 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
501 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
506 <A NAME="readInt()"><!-- --></A><H3>
509 public final int <B>readInt</B>()
510 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
515 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
520 <A NAME="readChar()"><!-- --></A><H3>
523 public final char <B>readChar</B>()
524 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
529 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
534 <A NAME="readFloat()"><!-- --></A><H3>
537 public final float <B>readFloat</B>()
538 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
543 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
548 <A NAME="readLine()"><!-- --></A><H3>
551 public <A HREF="../../java/lang/String.html" title="class in java.lang">String</A> <B>readLine</B>()
552 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
557 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
562 <A NAME="close()"><!-- --></A><H3>
565 public void <B>close</B>()
566 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
568 <DD><B>Description copied from class: <CODE><A HREF="../../java/io/InputStream.html#close()">InputStream</A></CODE></B></DD>
569 <DD>Closes this input stream and releases any system resources associated
572 <p> The <code>close</code> method of <code>InputStream</code> does
576 <DT><B>Overrides:</B><DD><CODE><A HREF="../../java/io/InputStream.html#close()">close</A></CODE> in class <CODE><A HREF="../../java/io/InputStream.html" title="class in java.io">InputStream</A></CODE></DL>
581 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE> - if an I/O error occurs.</DL>
584 <!-- ========= END OF CLASS DATA ========= -->
588 <!-- ======= START OF BOTTOM NAVBAR ====== -->
589 <A NAME="navbar_bottom"><!-- --></A>
590 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
591 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
593 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
594 <A NAME="navbar_bottom_firstrow"><!-- --></A>
595 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
596 <TR ALIGN="center" VALIGN="top">
597 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
598 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
599 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
600 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
601 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
602 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
603 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
607 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
613 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
614 PREV CLASS
615 <A HREF="../../java/io/DataOutputStream.html" title="class in java.io"><B>NEXT CLASS</B></A></FONT></TD>
616 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
617 <A HREF="../../index.html?java/io/DataInputStream.html" target="_top"><B>FRAMES</B></A>
618 <A HREF="DataInputStream.html" target="_top"><B>NO FRAMES</B></A>
619 <SCRIPT type="text/javascript">
622 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
627 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
634 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
635 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
636 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
637 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
640 <A NAME="skip-navbar_bottom"></A>
641 <!-- ======== END OF BOTTOM NAVBAR ======= -->