public void readExternal(ObjectInput oi) throws IOException, ClassNotFoundException { try { super.readExternal(oi); } catch (OptionalDataException ode) { // older ser of FolderLoader which did not store actions - ignore } }
public void readExternal (ObjectInput oi) throws IOException, ClassNotFoundException { // the result of following code is either ExtensionList (original version) // or this (current version). Object o = oi.readObject (); if (o instanceof SystemAction[]) { //added for compatibility with FFJ2.0 setActions ((SystemAction[]) o); setExtensions(getExtensions()); } else if (o instanceof ExtensionList) { // old serialization, add new extension ExtensionList list = (ExtensionList)o; setExtensions(list); } else { // newer serialization, everything should be ok, just read // the original value super.readExternal (oi); setExtensions(getExtensions()); } }