}
if (deserialize) {
// Deserialize the subclass
try {
FileInputStream fi = new FileInputStream(f);
ExtendedObjectInputStream si =
new ExtendedObjectInputStream(fi);
si.addRenamedClassName("test.SerialDriver", "install.SerialDriver");
si.addRenamedClassName("[Ltest.SerialDriver;",
"[Linstall.SerialDriver");
obj = (SerialDriver) si.readObject();
array = (SerialDriver[]) si.readObject();
si.close();
} catch (Exception e) {
System.out.println(e);
throw e;
}
System.out.println();