|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.utils.IpListFromUrl
Convenience class for generating a list of IP addresses from a file URL.
Field Summary | |
private static char |
COMMENT_CHAR
This character at the start of a line indicates a comment line in a URL file |
private static java.lang.String |
COMMENT_STR
The string indicating the start of the comments in a line containing the IP address in a file URL |
Constructor Summary | |
IpListFromUrl()
|
Method Summary | |
static java.util.List |
parse(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 |
Field Detail |
private static final java.lang.String COMMENT_STR
private static final char COMMENT_CHAR
Constructor Detail |
public IpListFromUrl()
Method Detail |
public static java.util.List parse(java.lang.String url)
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.
url
- The url file to read
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |