| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface ObjectOutput
ObjectOutput 扩展 DataOutput 接口以包含对象的写入操作。DataOutput 包括基本类型的输出方法;ObjectOutput 扩展了该接口,以包含对象、数组和 String 的输出方法。
InputStream, 
ObjectOutputStream, 
ObjectInputStream| 方法摘要 | |
|---|---|
|  void | close()关闭该流。 | 
|  void | flush()刷新该流的缓冲。 | 
|  void | write(byte[] b)写入 byte 数组。 | 
|  void | write(byte[] b,
      int off,
      int len)写入字节的子数组。 | 
|  void | write(int b)写入字节。 | 
|  void | writeObject(Object obj)将对象写入底层存储或流。 | 
| 从接口 java.io.DataOutput 继承的方法 | 
|---|
| writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF | 
| 方法详细信息 | 
|---|
void writeObject(Object obj)
                 throws IOException
obj - 要写入的对象
IOException - 如果发生任何与常规 Input/Output 相关的异常。
void write(int b)
           throws IOException
DataOutput 中的 writeb - 字节
IOException - 如果发生 I/O 错误
void write(byte[] b)
           throws IOException
DataOutput 中的 writeb - 要写入的数据
IOException - 如果发生 I/O 错误。
void write(byte[] b,
           int off,
           int len)
           throws IOException
DataOutput 中的 writeb - 要写入的数据off - 数据中的初始偏移量len - 写入的字节数
IOException - 如果发生 I/O 错误。
void flush()
           throws IOException
IOException - 如果发生 I/O 错误。
void close()
           throws IOException
IOException - 如果发生 I/O 错误。| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。