Package org.jboss.marshalling.serial
Class ExternalizedObject
java.lang.Object
org.jboss.marshalling.serial.ExternalizedObject
- All Implemented Interfaces:
Externalizable,Serializable
An externalized object. This wrapper allows an object that was written with an
Externalizer to be read by
standard Java serialization. Note that if an externalized object's child object graph ever refers to the original
object, there will be an error in the reconstructed object graph such that those references will refer to this
wrapper object rather than the properly externalized object.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExternalizedObject(org.jboss.marshalling.Externalizer externalizer, Object obj) -
Method Summary
Modifier and TypeMethodDescription<T> Tvoidprotected ObjectReturn the externalized object afterreadExternal()completes.void
-
Constructor Details
-
ExternalizedObject
public ExternalizedObject() -
ExternalizedObject
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
readResolve
Return the externalized object afterreadExternal()completes.- Returns:
- the externalized object
- Throws:
ObjectStreamException- never
-
create
- Throws:
InvalidClassException
-