⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readstream.html

📁 学习JAVA的很好的JAVA包和文档包
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<PRE>public char <B>getFirst</B>()</PRE><DL><DD>Read (but don't consume) next char in stream.<DD><DL><DT><B>Postcondition:</B><DD>returns next character in stream, without consuming it<DT><B>Returns:</B><DD>The next character to be read.</DL></DD></DL><HR><A NAME="eoln()"><!-- --></A><H3>eoln</H3><PRE>public boolean <B>eoln</B>()</PRE><DL><DD>Return true if the next character to be read is an end-of-line mark.<DD><DL><DT><B>Postcondition:</B><DD>returns true if next stream char is an eoln char<DT><B>Returns:</B><DD>True iff the next character is an end-of-line mark.</DL></DD></DL><HR><A NAME="readln()"><!-- --></A><H3>readln</H3><PRE>public void <B>readln</B>()</PRE><DL><DD>Read characters up to and including the end-of-line mark.<DD><DL><DT><B>Postcondition:</B><DD>reads input stream until end-of-line (\r or \n)</DL></DD></DL><HR><A NAME="skipWhite()"><!-- --></A><H3>skipWhite</H3><PRE>public void <B>skipWhite</B>()</PRE><DL><DD>Consume all the white-space characters until EOF or other data.<DD><DL><DT><B>Postcondition:</B><DD>input pointer is at EOF, or nonwhitespace char</DL></DD></DL><HR><A NAME="readString()"><!-- --></A><H3>readString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>readString</B>()</PRE><DL><DD>Skip white space and read in the next non-whitespace word as a string.<DD><DL><DT><B>Postcondition:</B><DD>reads next word as a string<DT><B>Returns:</B><DD>The next word on the input.</DL></DD></DL><HR><A NAME="acceptChar(char)"><!-- --></A><H3>acceptChar</H3><PRE>private boolean <B>acceptChar</B>(char&nbsp;c)</PRE><DL></DL><HR><A NAME="acceptWord(java.lang.String)"><!-- --></A><H3>acceptWord</H3><PRE>private boolean <B>acceptWord</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A>&nbsp;s)</PRE><DL></DL><HR><A NAME="readBoolean()"><!-- --></A><H3>readBoolean</H3><PRE>public boolean <B>readBoolean</B>()</PRE><DL><DD>Read the next word "true" or "false" as a boolean.<DD><DL><DT><B>Postcondition:</B><DD>returns next boolean value read from input<DT><B>Returns:</B><DD>The value true or false, depending on input.</DL></DD></DL><HR><A NAME="readChar()"><!-- --></A><H3>readChar</H3><PRE>public char <B>readChar</B>()</PRE><DL><DD>Read next character, whitespace or not.  Fail on eof.<DD><DL><DT><B>Postcondition:</B><DD>returns next character, or 0 for eof<DT><B>Returns:</B><DD>The next character, or the value 0 indicating EOF.</DL></DD></DL><HR><A NAME="pushbackChar(char)"><!-- --></A><H3>pushbackChar</H3><PRE>public void <B>pushbackChar</B>(char&nbsp;c)</PRE><DL><DD>Return character to input stream for reading at later time.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - The character to push back onto input stream.<DT><B>Postcondition:</B><DD>pushes back character, possibly clearing EOF;       if c == 0, does nothing</DL></DD></DL><HR><A NAME="readDouble()"><!-- --></A><H3>readDouble</H3><PRE>public double <B>readDouble</B>()</PRE><DL><DD>Reads the next double value from input stream. Whitespace is skipped beforehand. CURRENTLY NOT WORKING.<DD><DL><DT><B>Postcondition:</B><DD>reads in double value<DT><B>Returns:</B><DD>The next double found on input.</DL></DD></DL><HR><A NAME="readFloat()"><!-- --></A><H3>readFloat</H3><PRE>public float <B>readFloat</B>()</PRE><DL><DD>Read floating point value from input (Currently not working). Skips whitespace before reading.<DD><DL><DT><B>Postcondition:</B><DD>reads floating point value and returns value<DT><B>Returns:</B><DD>Next floating point number.</DL></DD></DL><HR><A NAME="readFully(byte[])"><!-- --></A><H3>readFully</H3><PRE>public void <B>readFully</B>(byte[]&nbsp;b)               throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE><DL><DD>Read an array of bytes from input.<DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - The array of bytes; holds result.</DL></DD></DL><HR><A NAME="readFully(byte[], int, int)"><!-- --></A><H3>readFully</H3><PRE>public void <B>readFully</B>(byte[]&nbsp;b,                      int&nbsp;off,                      int&nbsp;len)               throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE><DL><DD>Read input into byte array.<DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - Target array of bytes.<DD><CODE>off</CODE> - Offset into byte array to start reading.<DD><CODE>len</CODE> - Number of bytes to be read.</DL></DD></DL><HR><A NAME="readShort()"><!-- --></A><H3>readShort</H3><PRE>public short <B>readShort</B>()</PRE><DL><DD>Reads an integer from input stream.<DD><DL><DT><B>Postcondition:</B><DD>reads a short integer from stream<DT><B>Returns:</B><DD>The integer read form input.</DL></DD></DL><HR><A NAME="readInt()"><!-- --></A><H3>readInt</H3><PRE>public int <B>readInt</B>()</PRE><DL><DD>Reads an integer from input stream.<DD><DL><DT><B>Postcondition:</B><DD>reads an integer from stream<DT><B>Returns:</B><DD>The integer read form input.</DL></DD></DL><HR><A NAME="readLong()"><!-- --></A><H3>readLong</H3><PRE>public long <B>readLong</B>()</PRE><DL><DD>Read a (potentially long) input.<DD><DL><DT><B>Postcondition:</B><DD>reads a long integer from stream<DT><B>Returns:</B><DD>The integer read from input.</DL></DD></DL><HR><A NAME="readLine()"><!-- --></A><H3>readLine</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>readLine</B>()</PRE><DL><DD>Read the remainder of line, including end-of-line mark.<DD><DL><DT><B>Postcondition:</B><DD>reads remainder of line, returns as string<DT><B>Returns:</B><DD>The string containing all the characters to end-of-line.</DL></DD></DL><HR><A NAME="readUTF()"><!-- --></A><H3>readUTF</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>readUTF</B>()               throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE><DL><DD>Read unicode from input.<DD><DL><DT><B>Returns:</B><DD>String version of UTF character.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><a href=../copyright.html target=_top>&copy; 1998-2002 McGraw-Hill</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../structure/QueueVector.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../structure/RedBlackIterator.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ReadStream.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&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><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -