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

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

Best Java code snippets using org.apache.commons.io.monitor.FileAlterationListener.onFileCreate (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 created events to the registered listeners.
 *
 * @param entry The file entry
 */
private void doCreate(final FileEntry entry) {
  for (final FileAlterationListener listener : listeners) {
    if (entry.isDirectory()) {
      listener.onDirectoryCreate(entry.getFile());
    } else {
      listener.onFileCreate(entry.getFile());
    }
  }
  final FileEntry[] children = entry.getChildren();
  for (final FileEntry aChildren : children) {
    doCreate(aChildren);
  }
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Fire directory/file created events to the registered listeners.
 *
 * @param entry The file entry
 */
private void doCreate(final FileEntry entry) {
  for (final FileAlterationListener listener : listeners) {
    if (entry.isDirectory()) {
      listener.onDirectoryCreate(entry.getFile());
    } else {
      listener.onFileCreate(entry.getFile());
    }
  }
  final FileEntry[] children = entry.getChildren();
  for (final FileEntry aChildren : children) {
    doCreate(aChildren);
  }
}
origin: io.github.stephenc.docker/docker-client-shaded

/**
 * Fire directory/file created events to the registered listeners.
 *
 * @param entry The file entry
 */
private void doCreate(final FileEntry entry) {
  for (final FileAlterationListener listener : listeners) {
    if (entry.isDirectory()) {
      listener.onDirectoryCreate(entry.getFile());
    } else {
      listener.onFileCreate(entry.getFile());
    }
  }
  final FileEntry[] children = entry.getChildren();
  for (final FileEntry aChildren : children) {
    doCreate(aChildren);
  }
}
origin: Nextdoor/bender

/**
 * Fire directory/file created events to the registered listeners.
 *
 * @param entry The file entry
 */
private void doCreate(FileEntry entry) {
  for (FileAlterationListener listener : listeners) {
    if (entry.isDirectory()) {
      listener.onDirectoryCreate(entry.getFile());
    } else {
      listener.onFileCreate(entry.getFile());
    }
  }
  FileEntry[] children = entry.getChildren();
  for (FileEntry aChildren : children) {
    doCreate(aChildren);
  }
}
origin: org.onosproject/onlab-thirdparty

/**
 * Fire directory/file created events to the registered listeners.
 *
 * @param entry The file entry
 */
private void doCreate(FileEntry entry) {
  for (FileAlterationListener listener : listeners) {
    if (entry.isDirectory()) {
      listener.onDirectoryCreate(entry.getFile());
    } else {
      listener.onFileCreate(entry.getFile());
    }
  }
  FileEntry[] children = entry.getChildren();
  for (FileEntry aChildren : children) {
    doCreate(aChildren);
  }
}
org.apache.commons.io.monitorFileAlterationListeneronFileCreate

Javadoc

File created Event.

Popular methods of FileAlterationListener

  • onDirectoryChange
    Directory changed Event.
  • onDirectoryCreate
    Directory created Event.
  • onDirectoryDelete
    Directory deleted Event.
  • onFileChange
    File changed Event.
  • onFileDelete
    File deleted Event.
  • onStart
    File system observer started checking event.
  • onStop
    File system observer finished 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