- Write an object to the underlying storage or stream. The class that implements this interface defines how the object is written. 向底层存储或流中写入一个对象。实现该接口的对象定义了如何写入对象。
- Parameters:
obj- the object to be written 要写入的对象- Throws:
IOException- Any of the usual Input/Output related exceptions. 任何相关的I/O异常发生时抛出。
throws IOException
- Writes a byte. This method will block until the byte is actually written. 写入一个字节。方法将阻塞直到字节实际已被写入。
- Specified by:
writein interfaceDataOutput
- Parameters:
b- the byte 字节- Throws:
IOException- If an I/O error has occurred. 如果I/O错误发生时抛出。
throws IOException
- Writes an array of bytes. This method will block until the bytes are actually written. 写入字节数组。方法将阻塞直到字节实际已被写入。
- Specified by:
writein interfaceDataOutput
- Parameters:
b- the data to be written 要写入的数据- Throws:
IOException- If an I/O error has occurred. 如果I/O错误发生时抛出。
int off, int len) throws IOException
- Writes a sub array of bytes. 写入一段数组的字节。
- Specified by:
writein interfaceDataOutput
- Parameters:
b- the data to be written 要写入的数据off- the start offset in the data 数据的起始偏移len- the number of bytes that are written 写入的字节数- Throws:
IOException- If an I/O error has occurred. 如果I/O错误发生时抛出。
throws IOException
- Flushes the stream. This will write any buffered output bytes. 刷新流。将写入任何缓冲输出流。
- Throws:
IOException- If an I/O error has occurred. 如果I/O错误发生时抛出。
throws IOException
- Closes the stream. This method must be called to release any resources associated with the stream. 关闭流。方法必须调用以释放与流相关的所有资源。
- Throws:
IOException- If an I/O error has occurred. 如果I/O错误发生时抛出。
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




