public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException { Object s = input.readObject(); if (s instanceof Collection) s = ((Collection)s).toArray(); Object[] source = (Object[])s; setSource(source); }
/** * Implements {@link Externalizable#readExternal(ObjectInput)} * * @param input The object input. */ public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException { Object s = input.readObject(); if (s instanceof Collection) s = ((Collection)s).toArray(); Object[] source = (Object[])s; setSource(source); }
/** * Implements {@link Externalizable#readExternal(ObjectInput)} * * @param input The object input. */ public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException { Object s = input.readObject(); if (s instanceof Collection) s = ((Collection)s).toArray(); Object[] source = (Object[])s; setSource(source); }