com.sun.enterprise.naming.util
Class OSGiObjectInputOutputStreamFactoryImpl

java.lang.Object
  extended by com.sun.enterprise.naming.util.OSGiObjectInputOutputStreamFactoryImpl
All Implemented Interfaces:
ObjectInputOutputStreamFactory

public class OSGiObjectInputOutputStreamFactoryImpl
extends Object
implements ObjectInputOutputStreamFactory

Author:
Sanjeeb.Sahoo@Sun.COM

Constructor Summary
OSGiObjectInputOutputStreamFactoryImpl(org.osgi.framework.BundleContext ctx)
           
 
Method Summary
 void annotateClass(ObjectOutputStream out, Class<?> cl)
           
 ObjectInputStream createObjectInputStream(InputStream in)
           
 ObjectOutputStream createObjectOutputStream(OutputStream out)
           
 Class<?> resolveClass(ObjectInputStream in, ObjectStreamClass desc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiObjectInputOutputStreamFactoryImpl

public OSGiObjectInputOutputStreamFactoryImpl(org.osgi.framework.BundleContext ctx)
Method Detail

createObjectInputStream

public ObjectInputStream createObjectInputStream(InputStream in)
                                          throws IOException
Specified by:
createObjectInputStream in interface ObjectInputOutputStreamFactory
Throws:
IOException

createObjectOutputStream

public ObjectOutputStream createObjectOutputStream(OutputStream out)
                                            throws IOException
Specified by:
createObjectOutputStream in interface ObjectInputOutputStreamFactory
Throws:
IOException

resolveClass

public Class<?> resolveClass(ObjectInputStream in,
                             ObjectStreamClass desc)
                      throws IOException,
                             ClassNotFoundException
Specified by:
resolveClass in interface ObjectInputOutputStreamFactory
Throws:
IOException
ClassNotFoundException

annotateClass

public void annotateClass(ObjectOutputStream out,
                          Class<?> cl)
                   throws IOException
Specified by:
annotateClass in interface ObjectInputOutputStreamFactory
Throws:
IOException


Copyright © 2012. All Rights Reserved.