public final class Subnet extends Object
Constructor and Description |
---|
Subnet(int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(int ip,
int mymask) |
boolean |
add(String cidr) |
boolean |
contains(byte[] ipaddr) |
boolean |
contains(int ipaddr) |
void |
exportTo(DataOutput dos) |
static int |
parseInt(String s,
int from,
int to) |
static int |
parseIP(String addr,
int from,
int to) |
int |
size() |
public static final int parseInt(String s, int from, int to) throws NumberFormatException
NumberFormatException
public static final int parseIP(String addr, int from, int to) throws NumberFormatException
NumberFormatException
public boolean add(String cidr)
public void add(int ip, int mymask)
public int size()
public void exportTo(DataOutput dos) throws IOException
IOException
public boolean contains(int ipaddr)
public boolean contains(byte[] ipaddr)
Copyright © 2016 Egothor. All Rights Reserved.