/** * @param in the input stream to read from * @exception IOException error during read * @exception ClassNotFoundException when class not found */ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { in.defaultReadObject(); in.registerValidation( new ObjectInputValidation() { public void validateObject() { if (attr.getClass() == DefaultAttributes.class) { Impl impl = new Impl(LocalFileSystem.this); attr = new InnerAttrs(LocalFileSystem.this, impl, impl, impl); } } }, 0 ); }
/** * @param in the input stream to read from * @exception IOException error during read * @exception ClassNotFoundException when class not found */ private void readObject (java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { in.defaultReadObject (); ((ObjectInputStream)in).registerValidation(new ObjectInputValidation() { public void validateObject() { if (attr.getClass() == DefaultAttributes.class) { Impl impl = new Impl(LocalFileSystem.this); attr = new InnerAttrs(LocalFileSystem.this,impl, impl, impl); } } }, 0); }
/** * @param in the input stream to read from * @exception IOException error during read * @exception ClassNotFoundException when class not found */ private void readObject (java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { in.defaultReadObject (); ((ObjectInputStream)in).registerValidation(new ObjectInputValidation() { public void validateObject() { if (attr.getClass() == DefaultAttributes.class) { Impl impl = new Impl(LocalFileSystem.this); attr = new InnerAttrs(LocalFileSystem.this,impl, impl, impl); } } }, 0); }
/** Reads object from input stream, if it is * LocalFileSystem or JarFileSystem then replaces the object * by its Impl. */ static Object readImpl (String name, ObjectInputStream.GetField fields) throws ClassNotFoundException, IOException { Object o = fields.get (name, null); if (o instanceof LocalFileSystem) { return new LocalFileSystem.Impl ((LocalFileSystem)o); } else if (o instanceof JarFileSystem) { return new JarFileSystem.Impl ((JarFileSystem)o); } return o; }
/** Reads object from input stream, if it is * LocalFileSystem or JarFileSystem then replaces the object * by its Impl. */ static Object readImpl (String name, ObjectInputStream.GetField fields) throws ClassNotFoundException, IOException { Object o = fields.get (name, null); if (o instanceof LocalFileSystem) { return new LocalFileSystem.Impl ((LocalFileSystem)o); } else if (o instanceof JarFileSystem) { return new JarFileSystem.Impl ((JarFileSystem)o); } return o; }
public void validateObject() { if (attr.getClass() == DefaultAttributes.class) { Impl impl = new Impl(LocalFileSystem.this); attr = new InnerAttrs(LocalFileSystem.this,impl, impl, impl); } } }, 0);
/** Constructor. */ public LocalFileSystem () { Impl impl = new Impl (this); info = impl; change = impl; DefaultAttributes a = new InnerAttrs (this,info, change, impl); attr = a; list = a; setRefreshTime (REFRESH_TIME); }
public void validateObject() { if (attr.getClass() == DefaultAttributes.class) { Impl impl = new Impl(LocalFileSystem.this); attr = new InnerAttrs(LocalFileSystem.this,impl, impl, impl); } } }, 0);
/** Constructor. */ public LocalFileSystem () { Impl impl = new Impl (this); info = impl; change = impl; DefaultAttributes a = new InnerAttrs (this,info, change, impl); attr = a; list = a; setRefreshTime (REFRESH_TIME); }
/** Reads object from input stream, if it is * LocalFileSystem or JarFileSystem then replaces the object * by its Impl. */ static Object readImpl(String name, ObjectInputStream.GetField fields) throws ClassNotFoundException, IOException { Object o = fields.get(name, null); if (o instanceof LocalFileSystem) { return new LocalFileSystem.Impl((LocalFileSystem) o); } else if (o instanceof JarFileSystem) { return new JarFileSystem.Impl((JarFileSystem) o); } return o; }
public void validateObject() { if (attr.getClass() == DefaultAttributes.class) { Impl impl = new Impl(LocalFileSystem.this); attr = new InnerAttrs(LocalFileSystem.this, impl, impl, impl); } } }, 0
/** Constructor. */ public LocalFileSystem() { Impl impl = new Impl(this); info = impl; change = impl; DefaultAttributes a = new InnerAttrs(this, info, change, impl); attr = a; list = a; setRefreshTime(REFRESH_TIME); }