/** Getter for filesystem that caused the change. * @return filesystem */ public FileSystem getFileSystem() { return (FileSystem) getSource(); }
/** Check whether the given file has been changed. * @param file file to check * @return true if the file has been affected by the change */ public boolean hasChanged(FileObject file) { if (files == null) { // all files on source filesystem are said to change try { return file.getFileSystem() == getSource(); } catch (FileStateInvalidException ex) { // invalid files should not be changed return false; } } else { // specified set of files, so check it return files.contains(file); } } }
/** Getter for filesystem that caused the change. * @return filesystem */ public FileSystem getFileSystem () { return (FileSystem)getSource (); }
/** Getter for filesystem that caused the change. * @return filesystem */ public FileSystem getFileSystem () { return (FileSystem)getSource (); }
/** Check whether the given file has been changed. * @param file file to check * @return true if the file has been affected by the change */ public boolean hasChanged (FileObject file) { if (files == null) { // all files on source filesystem are said to change try { return file.getFileSystem() == getSource (); } catch (FileStateInvalidException ex) { // invalid files should not be changed return false; } } else { // specified set of files, so check it return files.contains (file); } } }
/** Check whether the given file has been changed. * @param file file to check * @return true if the file has been affected by the change */ public boolean hasChanged (FileObject file) { if (files == null) { // all files on source filesystem are said to change try { return file.getFileSystem() == getSource (); } catch (FileStateInvalidException ex) { // invalid files should not be changed return false; } } else { // specified set of files, so check it return files.contains (file); } } }