Class IpListFromUrl


  • public abstract class IpListFromUrl
    extends Object
    Convenience class for generating a list of IP addresses from a file URL.
    • Constructor Detail

      • IpListFromUrl

        public IpListFromUrl()
    • Method Detail

      • fetch

        public static List<String> fetch​(String url)
        This method is used to read all interfaces from an URL file.
         The file URL is read and each entry in this file checked. Each line
          in the URL file can be one of -
          <IP><space>#<comments>
          or
          <IP>
          or
          #<comments>
        
          Lines starting with a '#' are ignored and so are characters after
          a '<space>#' in a line.
         
        Parameters:
        url - The url file to read
        Returns:
        list of IPs in the file