Tabnine Logo
FileChangeObserver.doCreate
Code IndexAdd Tabnine to your IDE (free)

How to use
doCreate
method
in
leap.lang.io.FileChangeObserver

Best Java code snippets using leap.lang.io.FileChangeObserver.doCreate (Showing top 2 results out of 315)

origin: org.leapframework/leap-lang

while (c < files.length && comparator.compare(entry.getFile(), files[c]) > 0) {
  current[c] = createFileEntry(parent, files[c]);
  doCreate(current[c]);
  c++;
doCreate(current[c]);
origin: org.leapframework/leap-lang

/**
 * Fire directory/file created events to the registered listeners.
 *
 * @param entry The file entry
 */
private void doCreate(FileInfo entry) {
  for (FileChangeListener listener : listeners) {
    if (entry.isDirectory()) {
      listener.onDirectoryCreate(this,entry.getFile());
    } else {
      listener.onFileCreate(this,entry.getFile());
    }
  }
  FileInfo[] children = entry.getChildren();
  for (FileInfo aChildren : children) {
    doCreate(aChildren);
  }
}
leap.lang.ioFileChangeObserverdoCreate

Javadoc

Fire directory/file created events to the registered listeners.

Popular methods of FileChangeObserver

  • <init>
    Construct an observer for the specified directory, file filter and file comparator.
  • addListener
    Add a file system listener.
  • checkAndNotify
    Compare two file lists for files which have been created, modified or deleted.
  • createFileEntry
    Create a new file entry for the specified file.
  • destroy
    Final processing.
  • doDelete
    Fire directory/file delete events to the registered listeners.
  • doMatch
    Fire directory/file change events to the registered listeners.
  • getDirectory
    Return the directory being observed.
  • initialize
    Initialize the observer.
  • listFiles
    List the contents of a directory

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • 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
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • 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