📄 javaio.doc21.html
字号:
<a name="27868"></a>
<p><font size=+1><strong>22.23.15 </strong> <code>public final byte <code><b>readByte</b></code>() throws IOException</code></font>
<p>
<a name="27872"></a>
See the general contract of the <code>readByte</code> method of <code>DataInput</code> <a href="javaio.doc.html#28824">(§22.1.5)</a>.
<p><a name="27873"></a>
The byte for this operation is read from the random access file, starting at the current file pointer.<p>
<a name="27874"></a>
<p><font size=+1><strong>22.23.16 </strong> <code>public final int <code><b>readUnsignedByte</b></code>() throws IOException</code></font>
<p>
<a name="27878"></a>
See the general contract of the <code>readUnsignedByte</code> method of <code>DataInput</code>
<a href="javaio.doc.html#28831">(§22.1.6)</a>.
<p><a name="27879"></a>
The byte for this operation is read from the random access file, starting at the current file pointer.<p>
<a name="27880"></a>
<p><font size=+1><strong>22.23.17 </strong> <code>public final short <code><b>readShort</b></code>() throws IOException</code></font>
<p>
<a name="27884"></a>
See the general contract of the <code>readShort</code> method of <code>DataInput</code> <a href="javaio.doc.html#28838">(§22.1.7)</a>.
<p><a name="27885"></a>
Bytes for this operation are read from the random access file, starting at the current file pointer.<p>
<a name="27886"></a>
<p><font size=+1><strong>22.23.18 </strong> <code>public final int <code><b>readUnsignedShort</b></code>() throws IOException</code></font>
<p>
<a name="27890"></a>
See the general contract of the <code>readUnsignedShort</code> method of <code>DataInput</code>
<a href="javaio.doc20.html#29998">(§22.1.8)</a>.
<p><a name="27891"></a>
Bytes for this operation are read from the random access file, starting at the current file pointer.<p>
<a name="27892"></a>
<p><font size=+1><strong>22.23.19 </strong> <code>public final char <code><b>readChar</b></code>() throws IOException</code></font>
<p>
<a name="27896"></a>
See the general contract of the <code>readChar</code> method of <code>DataInput</code> <a href="javaio.doc.html#28853">(§22.1.9)</a>.
<p><a name="30263"></a>
Bytes for this operation are read from the random access file, starting at the current file pointer.<p>
<a name="30264"></a>
<p><font size=+1><strong>22.23.20 </strong> <code>public final int <code><b>readInt</b></code>() throws IOException</code></font>
<p>
<a name="30268"></a>
See the general contract of the <code>readInt</code> method of <code>DataInput</code> <a href="javaio.doc.html#28860">(§22.1.10)</a>.
<p><a name="30269"></a>
Bytes for this operation are read from the random access file, starting at the current file pointer.<p>
<a name="27904"></a>
<p><font size=+1><strong>22.23.21 </strong> <code>public final long <code><b>readLong</b></code>() throws IOException</code></font>
<p>
<a name="27908"></a>
See the general contract of the <code>readLong</code> method of <code>DataInput</code> <a href="javaio.doc.html#28871">(§22.1.11)</a>.
<p><a name="27909"></a>
Bytes for this operation are read from the random access file, starting at the current file pointer.<p>
<a name="27910"></a>
<p><font size=+1><strong>22.23.22 </strong> <code>public final float <code><b>readFloat</b></code>() throws IOException</code></font>
<p>
<a name="27914"></a>
See the general contract of the <code>readFloat</code> method of <code>DataInput</code> <a href="javaio.doc.html#28886">(§22.1.12)</a>.
<p><a name="27915"></a>
Bytes for this operation are read from the random access file, starting at the current file pointer.<p>
<a name="27916"></a>
<p><font size=+1><strong>22.23.23 </strong> <code>public final double <code><b>readDouble</b></code>() throws IOException</code></font>
<p>
<a name="27920"></a>
See the general contract of the <code>readDouble</code> method of <code>DataInput</code> <a href="javaio.doc.html#28899">(§22.1.13)</a>.
<p><a name="27921"></a>
Bytes for this operation are read from the random access file, starting at the current file pointer.<p>
<a name="27922"></a>
<p><font size=+1><strong>22.23.24 </strong> <code>public final String <code><b>readLine</b></code>() throws IOException</code></font>
<p>
<a name="27926"></a>
See the general contract of the <code>readLine</code> method of <code>DataInput</code> <a href="javaio.doc.html#28912">(§22.1.14)</a>.
<p><a name="27927"></a>
Bytes for this operation are read from the random access file, starting at the current file pointer.<p>
<a name="27928"></a>
<p><font size=+1><strong>22.23.25 </strong> <code>public final String <code><b>readUTF</b></code>() throws IOException</code></font>
<p>
<a name="27932"></a>
See the general contract of the <code>readUTF</code> method of <code>DataInput</code> <a href="javaio.doc.html#28916">(§22.1.15)</a>.
<p><a name="27933"></a>
Bytes for this operation are read from the random access file, starting at the current file pointer.<p>
<a name="27934"></a>
<p><font size=+1><strong>22.23.26 </strong> <code>public void <code><b>write</b></code>(int b) throws IOException;</code></font>
<p>
<a name="27938"></a>
See the general contract of the <code>write</code> method of <code>DataOutput</code> <a href="javaio.doc.html#28962">(§22.2.1)</a>.
<p><a name="27939"></a>
The byte for this operation is written to the random access file, starting at the current file pointer.<p>
<a name="27940"></a>
<p><font size=+1><strong>22.23.27 </strong> <code>public void <code><b>write</b></code>(byte[] b)<br>throws IOException, NullPointerException</code></font>
<p>
<a name="27944"></a>
See the general contract of the <code>write</code> method of <code>DataOutput</code> <a href="javaio.doc.html#28964">(§22.2.2)</a>.
<p><a name="27945"></a>
Bytes for this operation are written to the random access file, starting at the current file pointer.<p>
<a name="27946"></a>
<p><font size=+1><strong>22.23.28 </strong> <code>public void <code><b>write</b></code>(byte[] b, int off, int len)<br>throws IOException, NullPointerException,      IndexOutOfBoundsException</code></font>
<p>
<a name="27950"></a>
See the general contract of the <code>write</code> method of <code>DataOutput</code> <a href="javaio.doc.html#28968">(§22.2.3)</a>.
<p><a name="27951"></a>
Bytes for this operation are written to the random access file, starting at the current file pointer.<p>
<a name="27952"></a>
<p><font size=+1><strong>22.23.29 </strong> <code>public final void <code><b>writeBoolean</b></code>(boolean v)<br>throws IOException</code></font>
<p>
<a name="27956"></a>
See the general contract of the <code>writeBoolean</code> method of <code>DataOutput</code> <a href="javaio.doc.html#28974">(§22.2.4)</a>.
<p><a name="27957"></a>
The byte for this operation is written to the random access file, starting at the current file pointer.<p>
<a name="27958"></a>
<p><font size=+1><strong>22.23.30 </strong> <code>public final void <code><b>writeByte</b></code>(int v) throws IOException</code></font>
<p>
<a name="27962"></a>
See the general contract of the <code>writeByte</code> method of <code>DataOutput</code> <a href="javaio.doc.html#28981">(§22.2.5)</a>.
<p><a name="27963"></a>
The byte for this operation is written to the random access file, starting at the current file pointer.<p>
<a name="27964"></a>
<p><font size=+1><strong>22.23.31 </strong> <code>public final void <code><b>writeShort</b></code>(int v) throws IOException</code></font>
<p>
<a name="27968"></a>
See the general contract of the <code>writeShort</code> method of <code>DataOutput</code> <a href="javaio.doc.html#28988">(§22.2.6)</a>.
<p><a name="27969"></a>
Bytes for this operation are written to the random access file, starting at the current file pointer.<p>
<a name="27970"></a>
<p><font size=+1><strong>22.23.32 </strong> <code>public final void <code><b>writeChar</b></code>(int v) throws IOException</code></font>
<p>
<a name="27974"></a>
See the general contract of the <code>writeChar</code> method of <code>DataOutput</code> <a href="javaio.doc.html#28997">(§22.2.7)</a>.
<p><a name="27975"></a>
Bytes for this operation are written to the random access file, starting at the current file pointer.<p>
<a name="27976"></a>
<p><font size=+1><strong>22.23.33 </strong> <code>public final void <code><b>writeInt</b></code>(int v) throws IOException</code></font>
<p>
<a name="27980"></a>
See the general contract of the <code>writeInt</code> method of <code>DataOutput</code> <a href="javaio.doc16.html#29567">(§22.2.8)</a>.
<p><a name="27981"></a>
Bytes for this operation are written to the random access file, starting at the current file pointer.<p>
<a name="27982"></a>
<p><font size=+1><strong>22.23.34 </strong> <code>public final void <code><b>writeLong</b></code>(long v) throws IOException</code></font>
<p>
<a name="27986"></a>
See the general contract of the <code>writeLong</code> method of <code>DataOutput</code> <a href="javaio.doc.html#29017">(§22.2.9)</a>.
<p><a name="27987"></a>
Bytes for this operation are written to the random access file, starting at the current file pointer.<p>
<a name="27988"></a>
<p><font size=+1><strong>22.23.35 </strong> <code>public final void <code><b>writeFloat</b></code>(float v) throws IOException</code></font>
<p>
<a name="27992"></a>
See the general contract of the <code>writeFloat</code> method of <code>DataOutput</code> <a href="javaio.doc.html#29032">(§22.2.10)</a>.
<p><a name="27993"></a>
Bytes for this operation are written to the random access file, starting at the current file pointer.<p>
<a name="27994"></a>
<p><font size=+1><strong>22.23.36 </strong> <code>public final void <code><b>writeDouble</b></code>(double v)<br>throws IOException</code></font>
<p>
<a name="27998"></a>
See the general contract of the <code>writeDouble</code> method of <code>DataOutput</code> <a href="javaio.doc.html#29045">(§22.2.11)</a>.
<p><a name="27999"></a>
Bytes for this operation are written to the random access file, starting at the current file pointer.<p>
<a name="28000"></a>
<p><font size=+1><strong>22.23.37 </strong> <code>public final void <code><b>writeBytes</b></code>(String s) throws IOException</code></font>
<p>
<a name="28004"></a>
See the general contract of the <code>writeBytes</code> method of <code>DataOutput</code> <a href="javaio.doc.html#29058">(§22.2.12)</a>.
<p><a name="28005"></a>
Bytes for this operation are written to the random access file, starting at the current file pointer.<p>
<a name="28006"></a>
<p><font size=+1><strong>22.23.38 </strong> <code>public final void <code><b>writeChars</b></code>(String s) throws IOException</code></font>
<p>
<a name="28010"></a>
See the general contract of the <code>writeChars</code> method of <code>DataOutput</code> <a href="javaio.doc.html#29066">(§22.2.13)</a>.
<p><a name="28011"></a>
Bytes for this operation are written to the random access file, starting at the current file pointer.<p>
<a name="28012"></a>
<p><font size=+1><strong>22.23.39 </strong> <code>public final void <code><b>writeUTF</b></code>(String str) throws IOException</code></font>
<p>
<a name="28016"></a>
See the general contract of the <code>writeUTF</code> method of <code>DataOutput</code> <a href="javaio.doc.html#29074">(§22.2.14)</a>.
<p><a name="28017"></a>
Bytes for this operation are written to the random access file, starting at the current file pointer.<p>
<hr>
<!-- This inserts footnotes--><p>
<a href="index.html">Contents</a> | <a href="javaio.doc20.html">Prev</a> | <a href="javaio.doc22.html">Next</a> | <a href="j.index.doc1.html">Index</a>
<p>
<font size=-1>Java Language Specification (HTML generated by Suzette Pelouch on February 24, 1998)<br>
<i><a href="jcopyright.doc.html">Copyright © 1996 Sun Microsystems, Inc.</a>
All rights reserved</i>
<br>
Please send any comments or corrections to <a href="mailto:doug.kramer@sun.com">doug.kramer@sun.com</a>
</font>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -