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

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

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Kernel (java.awt.image)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top plugins for WebStorm
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