public class IPTable extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IPTable.IPFormatException
Exception Class to deal with IPFormat errors.
|
| Constructor and Description |
|---|
IPTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String ip)
Can be full v4 IP, subnet or range string
|
boolean |
contains(String ip)
Check whether a given address is contained in this netblock.
|
Set<String> |
toSet()
Convert to a Set.
|
public void add(String ip) throws IPTable.IPFormatException
ip - IPTable.IPFormatExceptionpublic boolean contains(String ip) throws IPTable.IPFormatException
ip - the address to be testedip is within this table's limitsIPTable.IPFormatExceptionCopyright © 2022 LYRASIS. All rights reserved.