Package net.azib.ipscan.exporters

Examples of net.azib.ipscan.exporters.ExportProcessor


      Exporter exporter = exporterRegistry.createExporter(fileName);

      statusBar.setStatusText(Labels.getLabel("state.exporting"));

      // 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);
          }
        };
      }

      exportProcessor.process(resultTable.getScanningResults(), filter);
      statusBar.setStatusText(null);
    }
View Full Code Here


      }
    }
    else
    if (transition == Transition.COMPLETE && state == ScanningState.IDLE && exporter != null) {
      // TODO: introduce SAVING state in order to show nice notification in the status bar
      ExportProcessor processor = new ExportProcessor(exporter, new File(outputFilename), appendToFile);
      processor.process(scanningResults, null);
      if (autoQuit) {
        System.err.println("Saved results to " + outputFilename);
        System.exit(0);
      }
    }
View Full Code Here

TOP

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

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.