|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.marshal.serializable.SerializableUnMarshaller
public class SerializableUnMarshaller
Will perform the deserialization of objects off the wire.
Field Summary | |
---|---|
protected java.lang.ClassLoader |
customClassLoader
|
static java.lang.String |
DATATYPE
|
protected java.lang.String |
serializationType
|
Constructor Summary | |
---|---|
SerializableUnMarshaller()
|
Method Summary | |
---|---|
UnMarshaller |
cloneUnMarshaller()
|
java.io.InputStream |
getMarshallingStream(java.io.InputStream inputStream)
An application that calls getMarshallingStream() should provide a basic InpputStream, e.g., SocketIntputStream, which can be wrapped to provide the facilities desired by the PreferredStreamUnMarshaller. |
java.io.InputStream |
getMarshallingStream(java.io.InputStream inputStream,
java.util.Map config)
SerializableUnMarshaller prefers to read from an ObjectOutputStream wrapped around a BufferedInputStream |
java.lang.String |
getSerializationType()
|
java.lang.Object |
read(java.io.InputStream inputStream,
java.util.Map metadata)
Reads the data from the input stream and converts to an Object. |
java.lang.Object |
read(java.io.InputStream inputStream,
java.util.Map metadata,
int version)
Reads the data from the input stream and converts to an Object. |
void |
setClassLoader(java.lang.ClassLoader classloader)
Sets the classloader to be used when deserializing objects off the wire. |
void |
setSerializationType(java.lang.String serializationType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DATATYPE
protected java.lang.ClassLoader customClassLoader
protected java.lang.String serializationType
Constructor Detail |
---|
public SerializableUnMarshaller()
Method Detail |
---|
public java.io.InputStream getMarshallingStream(java.io.InputStream inputStream) throws java.io.IOException
PreferredStreamUnMarshaller
getMarshallingStream
in interface PreferredStreamUnMarshaller
inputStream
- a raw IntputStream
java.io.IOException
- if unable to create InputStreampublic java.io.InputStream getMarshallingStream(java.io.InputStream inputStream, java.util.Map config) throws java.io.IOException
getMarshallingStream
in interface PreferredStreamUnMarshaller
inputStream
- a raw IntputStreamconfig
- a Map with configuration information (e.g., serialization type)
java.io.IOException
- if unable to create InputStreampublic java.lang.Object read(java.io.InputStream inputStream, java.util.Map metadata) throws java.io.IOException, java.lang.ClassNotFoundException
read
in interface UnMarshaller
inputStream
- metadata
-
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.Object read(java.io.InputStream inputStream, java.util.Map metadata, int version) throws java.io.IOException, java.lang.ClassNotFoundException
read
in interface VersionedUnMarshaller
inputStream
- metadata
- version
-
java.io.IOException
java.lang.ClassNotFoundException
public void setClassLoader(java.lang.ClassLoader classloader)
setClassLoader
in interface UnMarshaller
classloader
- public UnMarshaller cloneUnMarshaller() throws java.lang.CloneNotSupportedException
cloneUnMarshaller
in interface UnMarshaller
java.lang.CloneNotSupportedException
public void setSerializationType(java.lang.String serializationType)
setSerializationType
in interface SerialUnMarshaller
public java.lang.String getSerializationType()
getSerializationType
in interface SerialUnMarshaller
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |