Tabnine Logo
FileAlterationListener.onFileChange
Code IndexAdd Tabnine to your IDE (free)

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

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

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.monitorFileAlterationListeneronFileChange

Javadoc

File changed Event.

Popular methods of FileAlterationListener

  • onDirectoryChange
    Directory changed Event.
  • onDirectoryCreate
    Directory created Event.
  • onDirectoryDelete
    Directory deleted 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

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now