// Creates the stream from the file that storages the already serialized object
inputFile = new FileInputStream("workerman.xml");
// Relates the XML decoder with the input file stream
XMLDecoder xd = new XMLDecoder(inputFile);
// Reads the object from the stream and deserializes it using an XML decoding
clone = (Worker)xd.readObject();
// Closes the XML decoder
xd.close();