Tabnine Logo
FileAlterationListener.onDirectoryChange
Code IndexAdd Tabnine 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)

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

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • JButton (javax.swing)
  • JList (javax.swing)
  • JOptionPane (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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