/** Reads object from stream and creates listeners. * @param in the input stream to read from * @exception IOException error during read * @exception ClassNotFoundException when class not found */ @SuppressWarnings("deprecation") private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { in.defaultReadObject(); if (capability != null) { ((FileSystemCapability) capability).addPropertyChangeListener(getCapabilityChangeListener()); } }
/** The object describing capabilities of this filesystem. * Subclasses cannot override it. * @return object describing capabilities of this filesystem. * @deprecated Capabilities are no longer used. */ @Deprecated public final FileSystemCapability getCapability() { if (capability == null) { capability = new FileSystemCapability.Bean(); ((FileSystemCapability) capability).addPropertyChangeListener(getCapabilityChangeListener()); } return (FileSystemCapability) capability; }
/** Allows subclasses to change a set of capabilities of the * filesystem. * @param capability the capability to use * @deprecated Capabilities are no longer used. */ @Deprecated protected final void setCapability(FileSystemCapability capability) { if (this.capability != null) { ((FileSystemCapability) this.capability).removePropertyChangeListener(getCapabilityChangeListener()); } this.capability = capability; if (this.capability != null) { ((FileSystemCapability) this.capability).addPropertyChangeListener(getCapabilityChangeListener()); } }
/** Reads object from stream and creates listeners. * @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 (); if (capability != null) { capability.addPropertyChangeListener(getCapabilityChangeListener()); } }
/** Reads object from stream and creates listeners. * @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 (); if (capability != null) { capability.addPropertyChangeListener(getCapabilityChangeListener()); } }
/** Reads object from stream and creates listeners. * @param in the input stream to read from * @exception IOException error during read * @exception ClassNotFoundException when class not found */ @SuppressWarnings("deprecation") private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { in.defaultReadObject(); if (capability != null) { ((FileSystemCapability) capability).addPropertyChangeListener(getCapabilityChangeListener()); } }
/** The object describing capabilities of this filesystem. * Subclasses cannot override it. * @return object describing capabilities of this filesystem. * @deprecated Capabilities are no longer used. */ @Deprecated public final FileSystemCapability getCapability() { if (capability == null) { capability = new FileSystemCapability.Bean(); ((FileSystemCapability) capability).addPropertyChangeListener(getCapabilityChangeListener()); } return (FileSystemCapability) capability; }
/** The object describing capabilities of this filesystem. * Subclasses cannot override it. * @deprecated Capabilities are no longer used. */ public final FileSystemCapability getCapability () { if (capability == null) { capability = new FileSystemCapability.Bean(); capability.addPropertyChangeListener(getCapabilityChangeListener()); } return capability; }
/** The object describing capabilities of this filesystem. * Subclasses cannot override it. * @deprecated Capabilities are no longer used. */ public final FileSystemCapability getCapability () { if (capability == null) { capability = new FileSystemCapability.Bean(); capability.addPropertyChangeListener(getCapabilityChangeListener()); } return capability; }
/** Allows subclasses to change a set of capabilities of the * filesystem. * @param capability the capability to use * @deprecated Capabilities are no longer used. */ @Deprecated protected final void setCapability(FileSystemCapability capability) { if (this.capability != null) { ((FileSystemCapability) this.capability).removePropertyChangeListener(getCapabilityChangeListener()); } this.capability = capability; if (this.capability != null) { ((FileSystemCapability) this.capability).addPropertyChangeListener(getCapabilityChangeListener()); } }
/** Allows subclasses to change a set of capabilities of the * filesystem. * @param capability the capability to use * @deprecated Capabilities are no longer used. */ protected final void setCapability (FileSystemCapability capability) { if (this.capability != null) this.capability.removePropertyChangeListener(getCapabilityChangeListener ()); this.capability = capability; if (this.capability != null) this.capability.addPropertyChangeListener (getCapabilityChangeListener ()); }
/** Allows subclasses to change a set of capabilities of the * filesystem. * @param capability the capability to use * @deprecated Capabilities are no longer used. */ protected final void setCapability (FileSystemCapability capability) { if (this.capability != null) this.capability.removePropertyChangeListener(getCapabilityChangeListener ()); this.capability = capability; if (this.capability != null) this.capability.addPropertyChangeListener (getCapabilityChangeListener ()); }