java.io.ObjectInput翻译

2008-02-23 09:32:37来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

<!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> All Classes SUMMARY: NESTED | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD throws ClassNotFoundException, IOException
Read and return an object. The class that implements this interface defines where the object is "read" from. 读取并返回一个对象。实现该接口的类定义了对象从何读取。

Returns:
the object read from the stream 从流中读取的对象
Throws:
ClassNotFoundException - If the class of a serialized object cannot be found. 如果序列化对象的类不能找到时抛出。
IOException - If any of the usual Input/Output related exceptions occur. 如果任何常见的输入/输出相关异常发生时抛出。

throws IOException
Reads a byte of data. This method will block if no input is available. 读入一个字节的数据。如果没有输入可用,方法将阻塞。

Returns:
the byte read, or -1 if the end of the stream is reached. 读取的字节,当到达流末端时返回-1。
Throws:
IOException - If an I/O error has occurred. 如果I/O错误发生时抛出。

throws IOException
Reads into an array of bytes. This method will block until some input is available. 将字节读入数组。方法将阻塞至输入可用。

Parameters:
b - the buffer into which the data is read 数据被读入的缓冲
Returns:
the actual number of bytes read, -1 is returned when the end of the stream is reached. 读入的实际字节数,当到达流末端时返回-1。
Throws:
IOException - If an I/O error has occurred. 如果I/O错误发生时抛出。

int off, int len) throws IOException
Reads into an array of bytes. This method will block until some input is available. 将字节读入数组。方法将阻塞至输入可用。

Parameters:
b - the buffer into which the data is read 数据被读入的缓冲
off - the start offset of the data 数据的起始偏移
len - the maximum number of bytes read 读入字节的最大数
Returns:
the actual number of bytes read, -1 is returned when the end of the stream is reached. 读入的实际字节数,当到达流末端时返回-1。
Throws:
IOException - If an I/O error has occurred. 如果I/O错误发生时抛出。

throws IOException
Skips n bytes of input. 跳过n个输入字节。

Parameters:
n - the number of bytes to be skipped 跳过的字节数
Returns:
the actual number of bytes skipped. 实际跳过的字节数。
Throws:
IOException - If an I/O error has occurred. 如果I/O错误发生时抛出。

throws IOException
Returns the number of bytes that can be read without blocking. 返回不阻塞能读入的字节数。

Returns:
the number of available bytes. 可用字节数。

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:To invoke Web Service in .htm file

下一篇:使用J2ME技术实现简单的动画(附代码实现)