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