java. io. Datainput interface and Java io. Detailed explanation of dataoutput interface

DataInput

The datainput interface is used to read bytes from binary streams and reconstruct all java basic type data. At the same time, it also provides tools to reconstruct strings according to formatted data.

For all data reading routines in this interface, if the end of file has been reached before reading the data of the required number of bytes, Eofexception (a kind of IOException) will be thrown. If bytes cannot be read for reasons other than the end of the file, IOException will be thrown instead of eofexception. IOException will be thrown especially when the input stream is closed.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>