org.jboss.remoting.marshal.serializable
Class SerializableUnMarshaller
java.lang.Object
  
org.jboss.remoting.marshal.serializable.SerializableUnMarshaller
- All Implemented Interfaces: 
 - Serializable, UnMarshaller
 
- Direct Known Subclasses: 
 - HTTPUnMarshaller
 
- public class SerializableUnMarshaller
- extends Object
- implements UnMarshaller
   
Will perform the deserialization of objects off the wire.
- Author:
 
  - Tom Elrod
 
- See Also:
 - Serialized Form
 
 
 
| 
Method Summary | 
 Object | 
read(InputStream inputStream,
     Map metadata)
 
          Reads the data from the input stream and converts to an Object. | 
 void | 
setClassLoader(ClassLoader classloader)
 
          Sets the classloader to be used when deserializing objects off the wire. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DATATYPE
public static final String DATATYPE
- See Also:
 - Constant Field Values
 
SerializableUnMarshaller
public SerializableUnMarshaller()
read
public Object read(InputStream inputStream,
                   Map metadata)
            throws IOException,
                   ClassNotFoundException
- Reads the data from the input stream and converts to an Object.
 
 If the inputStream passed is an ObjectInputStream (which would prefer it not be), it will just
 use it as given.  If the input stream is not an instance of ObjectInputStream, will wrap it with a
 custom ObjectInputStream (ObjectInputStreamWithClassLoader) and use it.  The ObjectInputStreamWithClassLoader
 will use the custom class loader set in order to ensure that any classes not found within the local classloader
 can be loaded from the server and used within the client VM.  If the inpustream is of type ObjectInputStreamWithClassLoader,
 then will just set the classloader to the custom classloader and proceed.
- Specified by:
 read in interface UnMarshaller
 
- Parameters:
 inputStream - metadata - 
- Returns:
 - 
 - Throws:
 IOException
ClassNotFoundException
 
 
setClassLoader
public void setClassLoader(ClassLoader classloader)
- Sets the classloader to be used when deserializing objects off the wire.  This will ONLY be used in the
 when the input stream passed to the read() method is NOT an instance of ObjectInputStream.
- Specified by:
 setClassLoader in interface UnMarshaller
 
- Parameters:
 classloader - 
 
 
      
      
        Copyright © 2004 JBoss Inc. All Rights Reserved.