congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
FileIteratorImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
FileIteratorImpl
in
org.eclipse.jst.j2ee.commonarchivecore.internal.helpers

Best Java code snippets using org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.FileIteratorImpl (Showing top 4 results out of 315)

origin: org.eclipse/org.eclipse.jst.j2ee.core

public File next() {
  File next = super.next();
  try {
    do {
      currentEntry = zipInputStream.getNextEntry();
    } while (currentEntry.isDirectory());
  } catch (java.io.IOException ex) {
    throw new ArchiveRuntimeException(CommonArchiveResourceHandler.Error_iterating_the_archiv_EXC_, ex); // = "Error iterating the archive"
  }
  return next;
}
origin: org.eclipse/org.eclipse.jst.j2ee.core

  public File next() {
    if (!hasNext())
      throw new NoSuchElementException(CommonArchiveResourceHandler.End_of_list_reached_EXC_); // = "End of list reached"
    return (File) files.get(position++);
  }
}
origin: org.eclipse/org.eclipse.jst.j2ee.core

/**
 * Used internally; clients should not need to call
 */
public FileIterator getFileIterator() throws IOException {
  return new FileIteratorImpl(getContainer().getFiles());
}
origin: org.eclipse/org.eclipse.jst.j2ee

  public File next() {
    if(firstVisit){
      firstVisit = false;
      if(monitor != null){
        monitor.beginTask(ProjectSupportResourceHandler.getString(ProjectSupportResourceHandler.Exporting_archive, new Object [] { getContainer().getURI() }), files.size() * FILE_SAVE_WORK);
      }
    }
    if(lastSubMon != null){
      lastSubMon.done();
      lastSubMon = null;
    } else if(monitor != null){
      monitor.worked(FILE_SAVE_WORK);
    }
    File file = super.next();
    if(monitor != null){
      if(file.isContainer() && ComponentLoadStrategyImpl.class.isInstance(((ContainerImpl)file).getLoadStrategy())){
        ComponentLoadStrategyImpl ls = (ComponentLoadStrategyImpl)((ContainerImpl)file).getLoadStrategy();
        lastSubMon = new SubProgressMonitor(monitor, FILE_SAVE_WORK, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK);
        ls.setProgressMonitor(lastSubMon);
      } else {
        monitor.subTask(file.getURI());
      }
    }
    return file;
  }
};
org.eclipse.jst.j2ee.commonarchivecore.internal.helpersFileIteratorImpl

Most used methods

  • next
  • <init>
  • hasNext

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JCheckBox (javax.swing)
  • Join (org.hibernate.mapping)
  • Table (org.hibernate.mapping)
    A relational table
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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