java.io.ObjectInput翻译
2008-02-23 09:32:37来源:互联网 阅读 ()
- 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
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash