/** * Adds a file to be monitored. * * @param file The FileObject to monitor. */ @Override public void addFile(final FileObject file) { doAddFile(file); try { // add all direct children too if (file.getType().hasChildren()) { // Traverse the children final FileObject[] children = file.getChildren(); for (final FileObject element : children) { doAddFile(element); } } } catch (final FileSystemException fse) { LOG.error(fse.getLocalizedMessage(), fse); } }
/** * Adds a file to be monitored. * * @param file The FileObject to monitor. */ @Override public void addFile(final FileObject file) { doAddFile(file); try { // add all direct children too if (file.getType().hasChildren()) { // Traverse the children final FileObject[] children = file.getChildren(); for (final FileObject element : children) { doAddFile(element); } } } catch (final FileSystemException fse) { LOG.error(fse.getLocalizedMessage(), fse); } }
/** * Adds a file to be monitored. * * @param file The FileObject to monitor. */ @Override public void addFile(final FileObject file) { doAddFile(file); try { // add all direct children too if (file.getType().hasChildren()) { // Traverse the children final FileObject[] children = file.getChildren(); for (final FileObject element : children) { doAddFile(element); } } } catch (final FileSystemException fse) { LOG.error(fse.getLocalizedMessage(), fse); } }
/** * Adds a file to be monitored. * @param file The FileObject to monitor. */ @Override public void addFile(final FileObject file) { doAddFile(file); try { // add all direct children too if (file.getType().hasChildren()) { // Traverse the children final FileObject[] children = file.getChildren(); for (final FileObject element : children) { doAddFile(element); } } } catch (final FileSystemException fse) { LOG.error(fse.getLocalizedMessage(), fse); } }