Codota Logo
FileAlterationListener.onDirectoryChange
Code IndexAdd Codota to your IDE (free)

How to use
onDirectoryChange
method
in
org.apache.commons.io.monitor.FileAlterationListener

Best Java code snippets using org.apache.commons.io.monitor.FileAlterationListener.onDirectoryChange (Showing top 5 results out of 315)

  • Common ways to obtain FileAlterationListener
private void myMethod () {
FileAlterationListener f =
  • Codota IconIOException iOException;PrintStream printStream;iOException.printStackTrace(printStream)
  • Smart code suggestions by Codota
}
origin: commons-io/commons-io

/**
 * Fire directory/file change events to the registered listeners.
 *
 * @param entry The previous file system entry
 * @param file The current file
 */
private void doMatch(final FileEntry entry, final File file) {
  if (entry.refresh(file)) {
    for (final FileAlterationListener listener : listeners) {
      if (entry.isDirectory()) {
        listener.onDirectoryChange(file);
      } else {
        listener.onFileChange(file);
      }
    }
  }
}
origin: org.onosproject/onlab-thirdparty

/**
 * Fire directory/file change events to the registered listeners.
 *
 * @param entry The previous file system entry
 * @param file The current file
 */
private void doMatch(FileEntry entry, File file) {
  if (entry.refresh(file)) {
    for (FileAlterationListener listener : listeners) {
      if (entry.isDirectory()) {
        listener.onDirectoryChange(file);
      } else {
        listener.onFileChange(file);
      }
    }
  }
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Fire directory/file change events to the registered listeners.
 *
 * @param entry The previous file system entry
 * @param file The current file
 */
private void doMatch(final FileEntry entry, final File file) {
  if (entry.refresh(file)) {
    for (final FileAlterationListener listener : listeners) {
      if (entry.isDirectory()) {
        listener.onDirectoryChange(file);
      } else {
        listener.onFileChange(file);
      }
    }
  }
}
origin: io.github.stephenc.docker/docker-client-shaded

/**
 * Fire directory/file change events to the registered listeners.
 *
 * @param entry The previous file system entry
 * @param file The current file
 */
private void doMatch(final FileEntry entry, final File file) {
  if (entry.refresh(file)) {
    for (final FileAlterationListener listener : listeners) {
      if (entry.isDirectory()) {
        listener.onDirectoryChange(file);
      } else {
        listener.onFileChange(file);
      }
    }
  }
}
origin: Nextdoor/bender

/**
 * Fire directory/file change events to the registered listeners.
 *
 * @param entry The previous file system entry
 * @param file The current file
 */
private void doMatch(FileEntry entry, File file) {
  if (entry.refresh(file)) {
    for (FileAlterationListener listener : listeners) {
      if (entry.isDirectory()) {
        listener.onDirectoryChange(file);
      } else {
        listener.onFileChange(file);
      }
    }
  }
}
org.apache.commons.io.monitorFileAlterationListeneronDirectoryChange

Javadoc

Directory changed Event.

Popular methods of FileAlterationListener

  • onDirectoryCreate
    Directory created Event.
  • onDirectoryDelete
    Directory deleted Event.
  • onFileChange
    File changed Event.
  • onFileCreate
    File created Event.
  • onFileDelete
    File deleted Event.
  • onStart
    File system observer started checking event.
  • onStop
    File system observer finished checking event.

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • JTable (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now