Package org.auto.io.scanner

Examples of org.auto.io.scanner.ClassPathResourceScanner


    scanner.scan("F:/download/ckeditor_3.5.2.zip \r\n", handler);
    System.out.println("count" + count);
  }

  public static void testClassPathResourceScanner() {
    ClassPathResourceScanner scanner = new ClassPathResourceScanner();

    scanner.scan("org/apache/commons/logging/LogFactory.class",
        new ResourceHandler() {

          @Override
          public void handle(Resource t) {
            t.getInputStream();
View Full Code Here


  }

  private void init() {
    ResourcePatternScannerManager scannerManager = new ResourcePatternScannerManager();
    scannerManager.addScanner(ClassPathResource.RESOURCE_PROTOCOL_NAME,
        new ClassPathResourceScanner());
    scannerManager.addScanner(FileResource.RESOURCE_PROTOCOL_NAME,
        new FileSystemResourceScanner());
    scannerManager.addScanner(
        ServletContextResource.RESOURCE_PROTOCOL_NAME,
        new ServletContextResourceScanner(servletContext));
View Full Code Here

TOP

Related Classes of org.auto.io.scanner.ClassPathResourceScanner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.