Package gov.nasa.jpf.autodoc.types.scanner

Examples of gov.nasa.jpf.autodoc.types.scanner.ScanData


   
    Parser parser = new TargetParser();
    TargetScanner scanner = new TargetScanner(parser);
   
    String target = ".";
    ScanData scanData = scanner.scan(target, ScanType.JARS);
   
    List<byte[]> data = scanData.getDatalist();
    List<String> files = scanData.getFilelist();
   
    System.out.println(" jars_");
    System.out.println("  data count: " + data.size());
    System.out.println("  files count: " + files.size());
    assertFalse(data.isEmpty());
    assertTrue(files.isEmpty());
   
    scanData = scanner.scan(target, ScanType.PATHS);
   
    data = scanData.getDatalist();
    files = scanData.getFilelist();
   
    System.out.println(" paths_");
    System.out.println("  data count: " + data.size());
    System.out.println("  files count: " + files.size());
    assertTrue(data.isEmpty());
    assertFalse(files.isEmpty());
   
    scanData = scanner.scan(target, ScanType.ZIPS);
   
    data = scanData.getDatalist();
    files = scanData.getFilelist();
   
    System.out.println(" zips_");
    System.out.println("  data count: " + data.size());
    System.out.println("  files count: " + files.size());
    assertTrue(data.isEmpty());
    assertTrue(files.isEmpty());
   
    scanData = scanner.scan(target, ScanType.ALL);
   
    data = scanData.getDatalist();
    files = scanData.getFilelist();
   
    System.out.println(" all_");
    System.out.println("  data count: " + data.size());
    System.out.println("  files count: " + files.size());
    assertFalse(data.isEmpty());
View Full Code Here

TOP

Related Classes of gov.nasa.jpf.autodoc.types.scanner.ScanData

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.