Codota Logo
IteratorFactory
Code IndexAdd Codota to your IDE (free)

How to use
IteratorFactory
in
org.scannotation.archiveiterator

Best Java code snippets using org.scannotation.archiveiterator.IteratorFactory (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: net.sf.scannotation/scannotation

/**
* Scan a url that represents an "archive"  this is a classpath directory or jar file
*
* @param urls variable list of URLs to scan as archives
* @throws IOException
*/
public void scanArchives(URL... urls) throws IOException
{
 for (URL url : urls)
 {
   Filter filter = new Filter()
   {
    public boolean accepts(String filename)
    {
      if (filename.endsWith(".class"))
      {
       if (filename.startsWith("/")) filename = filename.substring(1);
       if (!ignoreScan(filename.replace('/', '.'))) return true;
       //System.out.println("IGNORED: " + filename);
      }
      return false;
    }
   };
   StreamIterator it = IteratorFactory.create(url, filter);
   InputStream stream;
   while ((stream = it.next()) != null) scanClass(stream);
 }
}
origin: de.juplo/scannotation

StreamIterator it = IteratorFactory.create(url, filter);
origin: com.khubla.pragmatach/pragmatach-framework

private static void scanURLs(URL[] urls, ServletContext servletContext) throws PragmatachException {
 try {
   if (null != servletContext) {
    final PluginFilter pluginFilter = new PluginFilter();
    if ((null != urls) && (urls.length > 0)) {
      for (final URL url : urls) {
       if (null != url) {
         final StreamIterator streamIterator = IteratorFactory.create(url, pluginFilter);
         InputStream inputStream;
         while (null != (inputStream = streamIterator.next())) {
          final PluginDescriptor plugin = new PluginDescriptor(url, inputStream, servletContext);
          logger.info("Found plugin: " + plugin.getName());
          plugins.put(plugin.getName(), plugin);
          inputStream.close();
         }
       }
      }
    }
   }
 } catch (final Exception e) {
   throw new PragmatachException("Exception in scanURLs", e);
 }
}
org.scannotation.archiveiteratorIteratorFactory

Most used methods

  • create

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • BoxLayout (javax.swing)
  • JPanel (javax.swing)
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
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