/** * Clears any state with the FileWatcher, making all files show up as new */ public void clearState() { rootFileObserver = new FileObserver(file); try { rootFileObserver.init(false); } catch (IOException e) { // ignore IOException } }
/** * Creates new file watcher on the given directory */ public FileWatcher(Path file) { this.file = file; rootFileObserver = new FileObserver(file); }
private FileObserver createChild(Path file, boolean initial) throws IOException { FileObserver child = new FileObserver(file); child.init(initial); return child; }
private FileObserver createChild(Path file, boolean initial) throws IOException { FileObserver child = new FileObserver(file); child.init(initial); return child; }
/** * Creates new file watcher on the given directory */ public FileWatcher(Path file) { this.file = file; rootFileObserver = new FileObserver(file); }
private FileObserver createChild(Path file, boolean initial) throws IOException { FileObserver child = new FileObserver(file); child.init(initial); return child; }
/** * Clears any state with the FileWatcher, making all files show up as new */ public void clearState() { rootFileObserver = new FileObserver(file); try { rootFileObserver.init(false); } catch (IOException e) { // ignore IOException } }
private FileObserver createChild(Path file, boolean initial) throws IOException { FileObserver child = new FileObserver(file); child.init(initial); return child; }
/** * Clears any state with the FileWatcher, making all files show up as new */ public void clearState() { rootFileObserver = new FileObserver(file); try { rootFileObserver.init(false); } catch (IOException e) { // ignore IOException } }
/** * Creates new file watcher on the given directory */ public FileWatcher(Path file) { this.file = file; rootFileObserver = new FileObserver(file); }
/** * Creates new file watcher on the given directory */ public FileWatcher(Path file) { this.file = file; rootFileObserver = new FileObserver(file); }
/** * Clears any state with the FileWatcher, making all files show up as new */ public void clearState() { rootFileObserver = new FileObserver(file); try { rootFileObserver.init(false); } catch (IOException e) { // ignore IOException } }
private FileObserver createChild(Path file, boolean initial) throws IOException { FileObserver child = new FileObserver(file); child.init(initial); return child; }
/** * Clears any state with the FileWatcher, making all files show up as new */ public void clearState() { rootFileObserver = new FileObserver(file); try { rootFileObserver.init(false); } catch (IOException e) { // ignore IOException } }
/** * Creates new file watcher on the given directory */ public FileWatcher(Path file) { this.file = file; rootFileObserver = new FileObserver(file); }