Package net.azib.ipscan.fetchers

Source Code of net.azib.ipscan.fetchers.IPFetcher

/**
* This file is a part of Angry IP Scanner source code,
* see http://www.angryip.org/ for more information.
*/
package net.azib.ipscan.fetchers;

import net.azib.ipscan.core.ScanningSubject;
import net.azib.ipscan.core.values.InetAddressHolder;

/**
* Dummy fetcher, which is able to return the textual representation
* of the passed IP address.
*
* @author Anton Keks
*/
public class IPFetcher extends AbstractFetcher {

  public static final String ID = "fetcher.ip";

  public String getId() {
    return ID;
  }

  public Object scan(ScanningSubject subject) {
    return new InetAddressHolder(subject.getAddress());
  }

}
TOP

Related Classes of net.azib.ipscan.fetchers.IPFetcher

TOP
Copyright © 2018 www.massapi.com. 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.