JavaTM 2 Platform
Standard Ed. 6

类 java.io.ObjectInputStream
的使用

使用 ObjectInputStream 的软件包
java.beans.beancontext 提供与 bean 上下文有关的类和接口。 
javax.management 提供 Java Management Extensions 的核心类。 
javax.rmi.CORBA 包含用于 RMI-IIOP 的可移植性 API。 
javax.swing.text 提供类 HTMLEditorKit 和创建 HTML 文本编辑器的支持类。 
 

java.beans.beancontextObjectInputStream 的使用
 

参数类型为 ObjectInputStreamjava.beans.beancontext 中的方法
protected  void BeanContextServicesSupport.bcsPreDeserializationHook(ObjectInputStream ois)
          在反序列化子级之前,从 BeanContextSupport readObject 中调用。
protected  void BeanContextSupport.bcsPreDeserializationHook(ObjectInputStream ois)
          在调用 defaultReadObject() 之后,但在反序列化任意子级之前,由 readObject 调用。
protected  void BeanContextSupport.deserialize(ObjectInputStream ois, Collection coll)
          readObject 使用此方法来反序列化一个 collection。
 void BeanContextSupport.readChildren(ObjectInputStream ois)
          在将此类的实例用作 BeanContext 协议(及其子协议)实现的代理时,在反序列化期间存在一个“先有鸡还是先有蛋”的问题。
 

javax.managementObjectInputStream 的使用
 

返回 ObjectInputStreamjavax.management 中的方法
 ObjectInputStream MBeanServer.deserialize(ObjectName name, byte[] data)
          已过时。 使用 getClassLoaderFor 为反序列化获得合适的类加载器。
 ObjectInputStream MBeanServer.deserialize(String className, byte[] data)
          已过时。 使用 MBeanServer.getClassLoaderRepository() 来获得类加载器存储库并使用它进行反序列化。
 ObjectInputStream MBeanServer.deserialize(String className, ObjectName loaderName, byte[] data)
          已过时。 使用 getClassLoader 为反序列化获得类加载器。
 

javax.rmi.CORBAObjectInputStream 的使用
 

参数类型为 ObjectInputStreamjavax.rmi.CORBA 中的方法
 void StubDelegate.readObject(Stub self, ObjectInputStream s)
          Stub.readObject(java.io.ObjectInputStream) 的委托调用。
 

javax.swing.textObjectInputStream 的使用
 

参数类型为 ObjectInputStreamjavax.swing.text 中的方法
 void StyleContext.readAttributes(ObjectInputStream in, MutableAttributeSet a)
          读入属性的特定于上下文的处理。
static void StyleContext.readAttributeSet(ObjectInputStream in, MutableAttributeSet a)
          从以前通过 writeAttributeSet 写出的给定对象输入流中读取一个属性集。
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only