javaserialization.pdf
(
277 KB
)
Pobierz
623018137 UNPDF
Serialization
1
Topics
●
What is Serialization?
●
What is preserved when an object is serialized?
●
Transient
keyword
●
Process of serialization
●
Process of deserialization
●
Version control
●
Changing the default protocol
●
Creating your own protocol via
Externalizable
2
What is
Serialization?
3
What is
Serialization?
What is Serialization?
●
Ability to read or write an object to a stream
–
Process of "flattening" an object
●
Used to save object to some permanent storage
–
Its state should be written in a serialized form to a
file such that the object can be reconstructed at a
later time from that file
●
Used to pass on to another object via the
OutputStream
class
–
Can be sent over the network
4
Streams Used for Serialization
●
ObjectOutputStream
–
For serializing (flattening an object)
●
ObjectInputStream
–
For deserializing (reconstructing an object)
5
Plik z chomika:
mystiqal
Inne pliki z tego folderu:
1-javaprogbasics.pdf
(390 KB)
2-javainputkey.pdf
(227 KB)
3-javacontrol.pdf
(370 KB)
commandarguments.pdf
(492 KB)
GCIntro.pdf
(261 KB)
Inne foldery tego chomika:
Zgłoś jeśli
naruszono regulamin