Class IpListFromUrl


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

      Constructors 
      Constructor Description
      IpListFromUrl()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> fetch​(java.lang.String url)
      This method is used to read all interfaces from an URL file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IpListFromUrl

        public IpListFromUrl()
    • Method Detail

      • fetch

        public static java.util.List<java.lang.String> fetch​(java.lang.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