Package net.azib.ipscan.exporters.ExportProcessor

Examples of net.azib.ipscan.exporters.ExportProcessor.ScanningResultFilter


      // TODO: expose appending feature in the GUI
      ExportProcessor exportProcessor = new ExportProcessor(exporter, new File(fileName), false);

      // in case of isSelection we need to create our filter
      ScanningResultFilter filter = null;
      if (isSelection) {
        filter = new ScanningResultFilter() {
          public boolean apply(int index, ScanningResult result) {
            return resultTable.isSelected(index);
          }
        };
      }
View Full Code Here


   
    scanningResultList.registerAtIndex(0, scanningResultList.createResult(InetAddress.getByName("192.168.13.66")));
    scanningResultList.registerAtIndex(1, scanningResultList.createResult(InetAddress.getByName("192.168.13.67")));
    scanningResultList.registerAtIndex(2, scanningResultList.createResult(InetAddress.getByName("192.168.13.76")));
   
    exportProcessor.process(scanningResultList, new ScanningResultFilter() {
      public boolean apply(int index, ScanningResult result) {
        // select only IP addresses ending with 6
        return ((String)result.getValues().get(0)).endsWith("6");
      }
    });
View Full Code Here

TOP

Related Classes of net.azib.ipscan.exporters.ExportProcessor.ScanningResultFilter

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.