Project 8: TimeCard project

To complete our extended TimeCard project, we will need to and receive the TimeCard object accross the network. Modify RemoteCopyDaemon to handle objects. Also, improve the the TimeCardTest class to interact with the user, and save and restore the TimeCard object across the network.

See also:

Next week, Jason will lecture on the AWT. We will put a visual front end on our TimeCard, was well as improving the object and making report generation programs.

Notes:

  1. You must modify the RemoteCopyDaemon to stick with streams, rather than reader/writer.
  2. The ObjectStreams do handle Strings, so this filter is good for both the header, the first line which give G or P followed by the file name, and the rest of the transfer, which will be bytes representing the object transferred.
  3. A concern is delimiting the header String from the rest of the data. Referencing the java.io API, the ObjectOutputStream.writeChars(String s) should match (!) with the ObjectInputStream.readLine() if String s ends with a '\n'.
  4. The comment field should be renamed to miscNotation, define String action and int serialID as instance fields in class TimeCardEntry.
  5. Define String employeeLastName, String employeeFirstName and String employeeId as instance fields in class TimeCard.