|
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.OutputStream | +--java.io.ObjectOutputStream | +--org.objectweb.jac.core.JacObjectOutputStream
JacObjectOutputStream
is used to write JAC objects
into an output stream during a serialization process.
This stream is used when serializing a JAC object into an array
of bytes when calling JacObject.serialize()
. All the
objects that are not JAC objects are serialized with the default
procedure. When a JAC object is encountered, a
whenSerialized
event is thrown on the current AC
manager so that the aspect components can parametrize the
serialization process.
A symetric process for deserialization is implemented by
JacObjectInputStream
.
ACManager.whenSerialized(Wrappee,SerializedJacObject)
,
JacObjectInputStream
Field Summary |
Constructor Summary | |
JacObjectOutputStream(OutputStream os)
Creates a JacObjectInputStream. |
Method Summary | |
protected Object |
replaceObject(Object obj)
This method is upcalled by the Java serialization process each time a new object to serialize is encountered. |
Methods inherited from class java.io.ObjectOutputStream |
annotateClass, annotateProxyClass, close, defaultWriteObject, drain, enableReplaceObject, flush, putFields, reset, useProtocolVersion, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeClassDescriptor, writeDouble, writeFields, writeFloat, writeInt, writeLong, writeObject, writeObjectOverride, writeShort, writeStreamHeader, writeUnshared, writeUTF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JacObjectOutputStream(OutputStream os) throws IOException
Method Detail |
protected Object replaceObject(Object obj) throws IOException
If a JAC object is encountered (instance of
Wrappee
), the aspect component manager is upcalled
to parametrize the serialization.
replaceObject
in class ObjectOutputStream
obj
- the encountered JAC object
IOException
SerializedJacObject
,
ACManager.whenSerialized(Wrappee,SerializedJacObject)
|
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 |