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 Sun Sep 02 23:07:08 BST 2007 -->
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>
104 <!-- =========== FIELD SUMMARY =========== -->
106 <A NAME="field_summary"><!-- --></A>
107 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
108 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
109 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
110 <B>Field Summary</B></FONT></TH>
112 <TR BGCOLOR="white" CLASS="TableRowColor">
113 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
114 <CODE>protected <A HREF="../../java/io/InputStream.html" title="class in java.io">InputStream</A></CODE></FONT></TD>
115 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#in">in</A></B></CODE>
118 </TD>
122 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
124 <A NAME="constructor_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>Constructor Summary</B></FONT></TH>
130 <TR BGCOLOR="white" CLASS="TableRowColor">
131 <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>
134 </TD>
138 <!-- ========== METHOD SUMMARY =========== -->
140 <A NAME="method_summary"><!-- --></A>
141 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
142 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
143 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
144 <B>Method Summary</B></FONT></TH>
146 <TR BGCOLOR="white" CLASS="TableRowColor">
147 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148 <CODE> void</CODE></FONT></TD>
149 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#close()">close</A></B>()</CODE>
152 Closes this input stream and releases any system resources associated
153 with the stream.</TD>
155 <TR BGCOLOR="white" CLASS="TableRowColor">
156 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157 <CODE> int</CODE></FONT></TD>
158 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#read()">read</A></B>()</CODE>
161 Reads the next byte of data from this input stream.</TD>
163 <TR BGCOLOR="white" CLASS="TableRowColor">
164 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165 <CODE> int</CODE></FONT></TD>
166 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#read(byte[])">read</A></B>(byte[] b)</CODE>
169 Reads some number of bytes from the input stream and stores them into
170 the buffer array <code>b</code>.</TD>
172 <TR BGCOLOR="white" CLASS="TableRowColor">
173 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
174 <CODE> int</CODE></FONT></TD>
175 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#read(byte[], int, int)">read</A></B>(byte[] b,
180 Reads up to <code>len</code> bytes of data from the input stream into
181 an array of bytes.</TD>
183 <TR BGCOLOR="white" CLASS="TableRowColor">
184 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
185 <CODE> boolean</CODE></FONT></TD>
186 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readBoolean()">readBoolean</A></B>()</CODE>
189 </TD>
191 <TR BGCOLOR="white" CLASS="TableRowColor">
192 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193 <CODE> byte</CODE></FONT></TD>
194 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readByte()">readByte</A></B>()</CODE>
197 </TD>
199 <TR BGCOLOR="white" CLASS="TableRowColor">
200 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201 <CODE> char</CODE></FONT></TD>
202 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readChar()">readChar</A></B>()</CODE>
205 </TD>
207 <TR BGCOLOR="white" CLASS="TableRowColor">
208 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209 <CODE> float</CODE></FONT></TD>
210 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readFloat()">readFloat</A></B>()</CODE>
213 </TD>
215 <TR BGCOLOR="white" CLASS="TableRowColor">
216 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217 <CODE> int</CODE></FONT></TD>
218 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readInt()">readInt</A></B>()</CODE>
221 </TD>
223 <TR BGCOLOR="white" CLASS="TableRowColor">
224 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225 <CODE> <A HREF="../../java/lang/String.html" title="class in java.lang">String</A></CODE></FONT></TD>
226 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readLine()">readLine</A></B>()</CODE>
229 </TD>
231 <TR BGCOLOR="white" CLASS="TableRowColor">
232 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233 <CODE> short</CODE></FONT></TD>
234 <TD><CODE><B><A HREF="../../java/io/DataInputStream.html#readShort()">readShort</A></B>()</CODE>
237 </TD>
240 <A NAME="methods_inherited_from_class_java.io.InputStream"><!-- --></A>
241 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
242 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
243 <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>
245 <TR BGCOLOR="white" CLASS="TableRowColor">
246 <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>
249 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
250 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
251 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
252 <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>
254 <TR BGCOLOR="white" CLASS="TableRowColor">
255 <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>
261 <!-- ============ FIELD DETAIL =========== -->
263 <A NAME="field_detail"><!-- --></A>
264 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
265 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
266 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
267 <B>Field Detail</B></FONT></TH>
271 <A NAME="in"><!-- --></A><H3>
274 protected <A HREF="../../java/io/InputStream.html" title="class in java.io">InputStream</A> <B>in</B></PRE>
280 <!-- ========= CONSTRUCTOR DETAIL ======== -->
282 <A NAME="constructor_detail"><!-- --></A>
283 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
284 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
285 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
286 <B>Constructor Detail</B></FONT></TH>
290 <A NAME="DataInputStream(java.io.InputStream)"><!-- --></A><H3>
293 public <B>DataInputStream</B>(<A HREF="../../java/io/InputStream.html" title="class in java.io">InputStream</A> in)</PRE>
297 <!-- ============ METHOD DETAIL ========== -->
299 <A NAME="method_detail"><!-- --></A>
300 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
301 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
302 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
303 <B>Method Detail</B></FONT></TH>
307 <A NAME="read()"><!-- --></A><H3>
310 public int <B>read</B>()
311 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
313 <DD>Reads the next byte of data from this input stream. The value
314 byte is returned as an <code>int</code> in the range
315 <code>0</code> to <code>255</code>. If no byte is available
316 because the end of the stream has been reached, the value
317 <code>-1</code> is returned. This method blocks until input data
318 is available, the end of the stream is detected, or an exception
322 simply performs <code>in.read()</code> and returns the result.
325 <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>
329 <DT><B>Returns:</B><DD>the next byte of data, or <code>-1</code> if the end of the
332 <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>
337 <A NAME="read(byte[])"><!-- --></A><H3>
340 public final int <B>read</B>(byte[] b)
341 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
343 <DD><B>Description copied from class: <CODE><A HREF="../../java/io/InputStream.html#read(byte[])">InputStream</A></CODE></B></DD>
344 <DD>Reads some number of bytes from the input stream and stores them into
345 the buffer array <code>b</code>. The number of bytes actually read is
346 returned as an integer. This method blocks until input data is
347 available, end of file is detected, or an exception is thrown.
349 <p> If <code>b</code> is <code>null</code>, a
350 <code>NullPointerException</code> is thrown. If the length of
351 <code>b</code> is zero, then no bytes are read and <code>0</code> is
352 returned; otherwise, there is an attempt to read at least one byte. If
353 no byte is available because the stream is at end of file, the value
354 <code>-1</code> is returned; otherwise, at least one byte is read and
355 stored into <code>b</code>.
357 <p> The first byte read is stored into element <code>b[0]</code>, the
358 next one into <code>b[1]</code>, and so on. The number of bytes read is,
359 at most, equal to the length of <code>b</code>. Let <i>k</i> be the
360 number of bytes actually read; these bytes will be stored in elements
361 <code>b[0]</code> through <code>b[</code><i>k</i><code>-1]</code>,
362 leaving elements <code>b[</code><i>k</i><code>]</code> through
363 <code>b[b.length-1]</code> unaffected.
365 <p> If the first byte cannot be read for any reason other than end of
366 file, then an <code>IOException</code> is thrown. In particular, an
367 <code>IOException</code> is thrown if the input stream has been closed.
369 <p> The <code>read(b)</code> method for class <code>InputStream</code>
370 has the same effect as: <pre><code> read(b, 0, b.length) </code></pre>
373 <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>
376 <DT><B>Parameters:</B><DD><CODE>b</CODE> - the buffer into which the data is read.
377 <DT><B>Returns:</B><DD>the total number of bytes read into the buffer, or
378 <code>-1</code> is there is no more data because the end of
379 the stream has been reached.
381 <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>
386 <A NAME="read(byte[], int, int)"><!-- --></A><H3>
389 public final int <B>read</B>(byte[] b,
392 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
394 <DD><B>Description copied from class: <CODE><A HREF="../../java/io/InputStream.html#read(byte[], int, int)">InputStream</A></CODE></B></DD>
395 <DD>Reads up to <code>len</code> bytes of data from the input stream into
396 an array of bytes. An attempt is made to read as many as
397 <code>len</code> bytes, but a smaller number may be read, possibly
398 zero. The number of bytes actually read is returned as an integer.
400 <p> This method blocks until input data is available, end of file is
401 detected, or an exception is thrown.
403 <p> If <code>b</code> is <code>null</code>, a
404 <code>NullPointerException</code> is thrown.
406 <p> If <code>off</code> is negative, or <code>len</code> is negative, or
407 <code>off+len</code> is greater than the length of the array
408 <code>b</code>, then an <code>IndexOutOfBoundsException</code> is
411 <p> If <code>len</code> is zero, then no bytes are read and
412 <code>0</code> is returned; otherwise, there is an attempt to read at
413 least one byte. If no byte is available because the stream is at end of
414 file, the value <code>-1</code> is returned; otherwise, at least one
415 byte is read and stored into <code>b</code>.
417 <p> The first byte read is stored into element <code>b[off]</code>, the
418 next one into <code>b[off+1]</code>, and so on. The number of bytes read
419 is, at most, equal to <code>len</code>. Let <i>k</i> be the number of
420 bytes actually read; these bytes will be stored in elements
421 <code>b[off]</code> through <code>b[off+</code><i>k</i><code>-1]</code>,
422 leaving elements <code>b[off+</code><i>k</i><code>]</code> through
423 <code>b[off+len-1]</code> unaffected.
425 <p> In every case, elements <code>b[0]</code> through
426 <code>b[off]</code> and elements <code>b[off+len]</code> through
427 <code>b[b.length-1]</code> are unaffected.
429 <p> If the first byte cannot be read for any reason other than end of
430 file, then an <code>IOException</code> is thrown. In particular, an
431 <code>IOException</code> is thrown if the input stream has been closed.
433 <p> The <code>read(b,</code> <code>off,</code> <code>len)</code> method
434 for class <code>InputStream</code> simply calls the method
435 <code>read()</code> repeatedly. If the first such call results in an
436 <code>IOException</code>, that exception is returned from the call to
437 the <code>read(b,</code> <code>off,</code> <code>len)</code> method. If
438 any subsequent call to <code>read()</code> results in a
439 <code>IOException</code>, the exception is caught and treated as if it
440 were end of file; the bytes read up to that point are stored into
441 <code>b</code> and the number of bytes read before the exception
442 occurred is returned. Subclasses are encouraged to provide a more
443 efficient implementation of this method.
446 <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>
449 <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>
450 at which the data is written.<DD><CODE>len</CODE> - the maximum number of bytes to read.
451 <DT><B>Returns:</B><DD>the total number of bytes read into the buffer, or
452 <code>-1</code> if there is no more data because the end of
453 the stream has been reached.
455 <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>
460 <A NAME="readBoolean()"><!-- --></A><H3>
463 public final boolean <B>readBoolean</B>()
464 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
469 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
474 <A NAME="readByte()"><!-- --></A><H3>
477 public final byte <B>readByte</B>()
478 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
483 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
488 <A NAME="readShort()"><!-- --></A><H3>
491 public final short <B>readShort</B>()
492 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
497 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
502 <A NAME="readInt()"><!-- --></A><H3>
505 public final int <B>readInt</B>()
506 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
511 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
516 <A NAME="readChar()"><!-- --></A><H3>
519 public final char <B>readChar</B>()
520 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
525 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
530 <A NAME="readFloat()"><!-- --></A><H3>
533 public final float <B>readFloat</B>()
534 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
539 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
544 <A NAME="readLine()"><!-- --></A><H3>
547 public <A HREF="../../java/lang/String.html" title="class in java.lang">String</A> <B>readLine</B>()
548 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
553 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>
558 <A NAME="close()"><!-- --></A><H3>
561 public void <B>close</B>()
562 throws <A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>
564 <DD><B>Description copied from class: <CODE><A HREF="../../java/io/InputStream.html#close()">InputStream</A></CODE></B></DD>
565 <DD>Closes this input stream and releases any system resources associated
568 <p> The <code>close</code> method of <code>InputStream</code> does
572 <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>
577 <DD><CODE><A HREF="../../java/io/IOException.html" title="class in java.io">IOException</A></CODE> - if an I/O error occurs.</DL>
580 <!-- ========= END OF CLASS DATA ========= -->
584 <!-- ======= START OF BOTTOM NAVBAR ====== -->
585 <A NAME="navbar_bottom"><!-- --></A>
586 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
587 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
589 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
590 <A NAME="navbar_bottom_firstrow"><!-- --></A>
591 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
592 <TR ALIGN="center" VALIGN="top">
593 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
594 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
595 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
596 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
597 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
598 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
599 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
603 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
609 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
610 PREV CLASS
611 <A HREF="../../java/io/DataOutputStream.html" title="class in java.io"><B>NEXT CLASS</B></A></FONT></TD>
612 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
613 <A HREF="../../index.html?java/io/DataInputStream.html" target="_top"><B>FRAMES</B></A>
614 <A HREF="DataInputStream.html" target="_top"><B>NO FRAMES</B></A>
615 <SCRIPT type="text/javascript">
618 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
623 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
630 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
631 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
632 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
633 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
636 <A NAME="skip-navbar_bottom"></A>
637 <!-- ======== END OF BOTTOM NAVBAR ======= -->