Home Segments Top Top Previous Next

631: Mainline

Java's writeObject method writes into a file information about a class instance. Information about the instance to be stored flows serially through the ObjectOutputStream and FileOutputStream instances as though it is flowing through conduits:

Instance 
  | 
  |     ObjectOutputStream          FileOutputStream 
  |   ----------------------      ---------------------- 
  *--------------------------------------------------------* 
      ----------------------      ----------------------   | 
                                                           v 
                                                          File