| Class | Description |
|---|---|
| ClonePrinter |
Prints an object as itself.
|
| ClonePrintHandler |
Handles the duplication of objects.
|
| CloneReader |
Reads an object and creates a copy of its data structures.
|
| CloneReadHandler |
Handles the duplication of objects.
|
| CloneTest |
Unit tests for the clone reader and printer.
|
| IdentityPrintHandler |
Print handler that returns the object that is passed to it
|
| IdentityReadHandler |
Read handler that returns the object that is passed to it
|
| ListReadHandler |
Print handler that returns a copy of the list that is passed to it
|
| MapReadHandler |
Print handler that returns a copy of the map that is passed to it
|
| NullReadHandler |
Print handler that returns a null value
|
| PrintablePrintHandler | |
| QueueReadHandler |
Print handler that returns a copy of the queue that is passed to it
|
| ReadableReadHandler |
Reads a wrapped object and returns the inner object.
|
| SetReadHandler |
Print handler that returns a copy of the list that is passed to it
|
| WrappedObject |
A special object that indicates that the object being serialized implements
the
Readable interface. |
This serializer shows how Azrael's generic structure can be used to perform something different from serialization. In this case, the object printer simply returns the object it is given. The object reader, in turn, creates a copy of every object it receives. The end result is that a serialization followed by a deserialization creates a deep clone of the original object.
Copyright © Sylvain HallĂ©. All Rights Reserved.