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

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

Best Java code snippets using org.apache.commons.io.monitor.FileAlterationListener.onStop (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

/**
 * Check whether the file and its children have been created, modified or deleted.
 */
public void checkAndNotify() {
  /* fire onStart() */
  for (final FileAlterationListener listener : listeners) {
    listener.onStart(this);
  }
  /* fire directory/file events */
  final File rootFile = rootEntry.getFile();
  if (rootFile.exists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), listFiles(rootFile));
  } else if (rootEntry.isExists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), FileUtils.EMPTY_FILE_ARRAY);
  } else {
    // Didn't exist and still doesn't
  }
  /* fire onStop() */
  for (final FileAlterationListener listener : listeners) {
    listener.onStop(this);
  }
}
origin: io.github.stephenc.docker/docker-client-shaded

/**
 * Check whether the file and its chlidren have been created, modified or deleted.
 */
public void checkAndNotify() {
  /* fire onStart() */
  for (final FileAlterationListener listener : listeners) {
    listener.onStart(this);
  }
  /* fire directory/file events */
  final File rootFile = rootEntry.getFile();
  if (rootFile.exists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), listFiles(rootFile));
  } else if (rootEntry.isExists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), FileUtils.EMPTY_FILE_ARRAY);
  } else {
    // Didn't exist and still doesn't
  }
  /* fire onStop() */
  for (final FileAlterationListener listener : listeners) {
    listener.onStop(this);
  }
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Check whether the file and its children have been created, modified or deleted.
 */
public void checkAndNotify() {
  /* fire onStart() */
  for (final FileAlterationListener listener : listeners) {
    listener.onStart(this);
  }
  /* fire directory/file events */
  final File rootFile = rootEntry.getFile();
  if (rootFile.exists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), listFiles(rootFile));
  } else if (rootEntry.isExists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), FileUtils.EMPTY_FILE_ARRAY);
  } else {
    // Didn't exist and still doesn't
  }
  /* fire onStop() */
  for (final FileAlterationListener listener : listeners) {
    listener.onStop(this);
  }
}
origin: org.onosproject/onlab-thirdparty

/**
 * Check whether the file and its chlidren have been created, modified or deleted.
 */
public void checkAndNotify() {
  /* fire onStart() */
  for (FileAlterationListener listener : listeners) {
    listener.onStart(this);
  }
  /* fire directory/file events */
  File rootFile = rootEntry.getFile();
  if (rootFile.exists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), listFiles(rootFile));
  } else if (rootEntry.isExists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), FileUtils.EMPTY_FILE_ARRAY);
  } else {
    // Didn't exist and still doesn't
  }
  /* fire onStop() */
  for (FileAlterationListener listener : listeners) {
    listener.onStop(this);
  }
}
origin: Nextdoor/bender

/**
 * Check whether the file and its chlidren have been created, modified or deleted.
 */
public void checkAndNotify() {
  /* fire onStart() */
  for (FileAlterationListener listener : listeners) {
    listener.onStart(this);
  }
  /* fire directory/file events */
  File rootFile = rootEntry.getFile();
  if (rootFile.exists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), listFiles(rootFile));
  } else if (rootEntry.isExists()) {
    checkAndNotify(rootEntry, rootEntry.getChildren(), FileUtils.EMPTY_FILE_ARRAY);
  } else {
    // Didn't exist and still doesn't
  }
  /* fire onStop() */
  for (FileAlterationListener listener : listeners) {
    listener.onStop(this);
  }
}
org.apache.commons.io.monitorFileAlterationListeneronStop

Javadoc

File system observer finished checking event.

Popular methods of FileAlterationListener

  • onDirectoryChange
    Directory changed Event.
  • 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.

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • setContentView (Activity)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JComboBox (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
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