|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--java.io.ObjectInputStream | +--org.objectweb.jac.core.JacObjectInputStream
JacObjectInputStream
is used to read JAC objects from
an input stream during a deserialization process.
This stream is used when deserializing an array of bytes with
JacObject.deserialize()
. All the objects that are not
serialized JAC objects are deserialized with the default
procedure. When a serialized JAC object is encountered, a
whenDeserialized
event is thrown on the current AC
manager so that the aspect components can parametrize the
deserialization process.
A symetric process for serialization is implemented by
JacObjectOutputStream
.
ACManager.whenDeserialized(SerializedJacObject,Wrappee)
,
JacObjectOutputStream
Field Summary |
Constructor Summary | |
JacObjectInputStream(InputStream is)
Creates a JacObjectInputStream. |
Method Summary | |
protected Object |
resolveObject(Object obj)
This method is upcalled by the Java deserialization process each time a new object to deserialize is encountered. |
Methods inherited from class java.io.ObjectInputStream |
available, close, defaultReadObject, enableResolveObject, read, read, readBoolean, readByte, readChar, readClassDescriptor, readDouble, readFields, readFloat, readFully, readFully, readInt, readLine, readLong, readObject, readObjectOverride, readShort, readStreamHeader, readUnshared, readUnsignedByte, readUnsignedShort, readUTF, registerValidation, resolveClass, resolveProxyClass, skipBytes |
Methods inherited from class java.io.InputStream |
mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.ObjectInput |
read, skip |
Constructor Detail |
public JacObjectInputStream(InputStream is) throws IOException
is
- the input stream from which the bytes are read.Method Detail |
protected Object resolveObject(Object obj) throws IOException
If a serialized JAC object is encountered (instance of
SerializedJacObject
), the aspect component manager
is upcalled to parametrize the deserialization.
resolveObject
in class ObjectInputStream
obj
- the encountered serialized JAC object
IOException
SerializedJacObject
,
ACManager.whenDeserialized(SerializedJacObject,Wrappee)
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |