February 2014
Beginner
1248 pages
62h 25m
English
Classes ObjectInputStream and ObjectOutputStream (package java.io), which respectively implement the ObjectInput and ObjectOutput interfaces, enable entire objects to be read from or written to a stream (possibly a file). To use serialization with files, we initialize ObjectInputStream and ObjectOutputStream objects with stream objects that read from and write to files. Initializing stream objects with other stream objects in this manner is sometimes called wrapping—the new stream object being created wraps the stream object specified as a constructor argument.
Classes ObjectInputStream and ObjectOutputStream simply read and write the byte-based representation of objects—they don’t know where ...
Read now
Unlock full access