📄 ioexception.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>DataInput.</B><B><A HREF="../../../java/io/DataInput.html#readFully(byte[], int, int)">readFully</A></B>(byte[] b, int off, int len)</CODE>
<BR>
Reads <code>len</code> bytes from an input stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B>DataInput.</B><B><A HREF="../../../java/io/DataInput.html#skipBytes(int)">skipBytes</A></B>(int n)</CODE>
<BR>
Makes an attempt to skip over <code>n</code> bytes of data from the input stream, discarding the skipped bytes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B>DataInput.</B><B><A HREF="../../../java/io/DataInput.html#readBoolean()">readBoolean</A></B>()</CODE>
<BR>
Reads one input byte and returns <code>true</code> if that byte is nonzero, <code>false</code> if that byte is zero.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> byte</CODE></FONT></TD>
<TD><CODE><B>DataInput.</B><B><A HREF="../../../java/io/DataInput.html#readByte()">readByte</A></B>()</CODE>
<BR>
Reads and returns one input byte.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B>DataInput.</B><B><A HREF="../../../java/io/DataInput.html#readUnsignedByte()">readUnsignedByte</A></B>()</CODE>
<BR>
Reads one input byte, zero-extends it to type <code>int</code>, and returns the result, which is therefore in the range <code>0</code> through <code>255</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> short</CODE></FONT></TD>
<TD><CODE><B>DataInput.</B><B><A HREF="../../../java/io/DataInput.html#readShort()">readShort</A></B>()</CODE>
<BR>
Reads two input bytes and returns a <code>short</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B>DataInput.</B><B><A HREF="../../../java/io/DataInput.html#readUnsignedShort()">readUnsignedShort</A></B>()</CODE>
<BR>
Reads two input bytes and returns an <code>int</code> value in the range <code>0</code> through <code>65535</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> char</CODE></FONT></TD>
<TD><CODE><B>DataInput.</B><B><A HREF="../../../java/io/DataInput.html#readChar()">readChar</A></B>()</CODE>
<BR>
Reads an input <code>char</code> and returns the <code>char</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B>DataInput.</B><B><A HREF="../../../java/io/DataInput.html#readInt()">readInt</A></B>()</CODE>
<BR>
Reads four input bytes and returns an <code>int</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B>DataInput.</B><B><A HREF="../../../java/io/DataInput.html#readLong()">readLong</A></B>()</CODE>
<BR>
Reads eight input bytes and returns a <code>long</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD>
<TD><CODE><B>DataInput.</B><B><A HREF="../../../java/io/DataInput.html#readUTF()">readUTF</A></B>()</CODE>
<BR>
Reads in a string that has been encoded using a modified UTF-8 format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract void</CODE></FONT></TD>
<TD><CODE><B>OutputStream.</B><B><A HREF="../../../java/io/OutputStream.html#write(int)">write</A></B>(int b)</CODE>
<BR>
Writes the specified byte to this output stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>OutputStream.</B><B><A HREF="../../../java/io/OutputStream.html#write(byte[])">write</A></B>(byte[] b)</CODE>
<BR>
Writes <code>b.length</code> bytes from the specified byte array to this output stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>OutputStream.</B><B><A HREF="../../../java/io/OutputStream.html#write(byte[], int, int)">write</A></B>(byte[] b, int off, int len)</CODE>
<BR>
Writes <code>len</code> bytes from the specified byte array starting at offset <code>off</code> to this output stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>OutputStream.</B><B><A HREF="../../../java/io/OutputStream.html#flush()">flush</A></B>()</CODE>
<BR>
Flushes this output stream and forces any buffered output bytes to be written out.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>OutputStream.</B><B><A HREF="../../../java/io/OutputStream.html#close()">close</A></B>()</CODE>
<BR>
Closes this output stream and releases any system resources associated with this stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>DataOutputStream.</B><B><A HREF="../../../java/io/DataOutputStream.html#write(int)">write</A></B>(int b)</CODE>
<BR>
Writes the specified byte (the low eight bits of the argument <code>b</code>) to the underlying output stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>DataOutputStream.</B><B><A HREF="../../../java/io/DataOutputStream.html#write(byte[], int, int)">write</A></B>(byte[] b, int off, int len)</CODE>
<BR>
Writes <code>len</code> bytes from the specified byte array starting at offset <code>off</code> to the underlying output stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>DataOutputStream.</B><B><A HREF="../../../java/io/DataOutputStream.html#flush()">flush</A></B>()</CODE>
<BR>
Flushes this data output stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>DataOutputStream.</B><B><A HREF="../../../java/io/DataOutputStream.html#close()">close</A></B>()</CODE>
<BR>
Closes this output stream and releases any system resources associated with the stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>DataOutputStream.</B><B><A HREF="../../../java/io/DataOutputStream.html#writeBoolean(boolean)">writeBoolean</A></B>(boolean v)</CODE>
<BR>
Writes a <code>boolean</code> to the underlying output stream as a 1-byte value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>DataOutputStream.</B><B><A HREF="../../../java/io/DataOutputStream.html#writeByte(int)">writeByte</A></B>(int v)</CODE>
<BR>
Writes out a <code>byte</code> to the underlying output stream as a 1-byte value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>DataOutputStream.</B><B><A HREF="../../../java/io/DataOutputStream.html#writeShort(int)">writeShort</A></B>(int v)</CODE>
<BR>
Writes a <code>short</code> to the underlying output stream as two bytes, high byte first.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>DataOutputStream.</B><B><A HREF="../../../java/io/DataOutputStream.html#writeChar(int)">writeChar</A></B>(int v)</CODE>
<BR>
Writes a <code>char</code> to the underlying output stream as a 2-byte value, high byte first.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>DataOutputStream.</B><B><A HREF="../../../java/io/DataOutputStream.html#writeInt(int)">writeInt</A></B>(int v)</CODE>
<BR>
Writes an <code>int</code> to the underlying output stream as four bytes, high byte first.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>DataOutputStream.</B><B><A HREF="../../../java/io/DataOutputStream.html#writeLong(long)">writeLong</A></B>(long v)</CODE>
<BR>
Writes a <code>long</code> to the underlying output stream as eight bytes, high byte first.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>DataOutputStream.</B><B><A HREF="../../../java/io/DataOutputStream.html#writeChars(java.lang.String)">writeChars</A></B>(<A HREF="../../../java/lang/String.html">String</A> s)</CODE>
<BR>
Writes a string to the underlying output stream as a sequence of characters.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>DataOutputStream.</B><B><A HREF="../../../java/io/DataOutputStream.html#writeUTF(java.lang.String)">writeUTF</A></B>(<A HREF="../../../java/lang/String.html">String</A> str)</CODE>
<BR>
Writes a string to the underlying output stream using UTF-8 encoding in a machine-independent manner.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B>InputStreamReader.</B><B><A HREF="../../../java/io/InputStreamReader.html#read()">read</A></B>()</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -