Class NicFetcher

java.lang.Object
com.baremaps.iploc.nic.NicFetcher

public class NicFetcher extends Object
A utility for fetching the data of Network Coordination Centers (NIC) in temporary files.
  • Field Details

    • NIC_URLS

      public static final List<String> NIC_URLS
      A list of default urls.
  • Constructor Details

    • NicFetcher

      public NicFetcher()
  • Method Details

    • fetch

      public Stream<Path> fetch()
      Fetches the default urls.
      Returns:
      the fetched urls
    • fetch

      public Stream<Path> fetch(List<String> urls)
      Fetches the provided urls.
      Parameters:
      urls - the urls to fetch
      Returns:
      the fetched urls
    • fetch

      public Path fetch(String url)
      Fetches the provided url.
      Parameters:
      url - the url to fetch
      Returns:
      the fetched url