org.opennms.core.utils
Class IpListFromUrl
java.lang.Object
org.opennms.core.utils.IpListFromUrl
public class IpListFromUrl
- extends Object
Convenience class for generating a list of IP addresses from a file URL.
|
Method Summary |
static List<String> |
parse(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 |
IpListFromUrl
public IpListFromUrl()
parse
public static List<String> parse(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
Copyright © 2011. All Rights Reserved.