Modifier and Type | Class and Description |
---|---|
static class |
InetAddr.Family |
Modifier and Type | Field and Description |
---|---|
protected byte[] |
address |
protected short |
maskBits |
Modifier | Constructor and Description |
---|---|
|
InetAddr(byte[] address,
short maskBits) |
protected |
InetAddr(Object[] parts) |
|
InetAddr(String cidrAddress) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
byte[] |
getAddress() |
InetAddr.Family |
getFamily() |
byte[] |
getMaskAddress() |
int |
getMaskBits() |
int |
hashCode() |
static InetAddr |
parseInetAddr(String inetAddr) |
static InetAddr |
parseInetAddr(String inetAddr,
boolean allowShorthandNotation) |
static InetAddr |
parseInetAddr(String inetAddr,
boolean allowShortNotation,
InetAddr.Family family) |
protected static Object[] |
parseN(String inetAddr,
boolean allowShortNotation) |
protected static Object[] |
parseN(String inetAddr,
boolean allowShortNotation,
InetAddr.Family family) |
void |
setAddress(byte[] address) |
void |
setMaskBits(short maskBits) |
InetAddress |
toInetAddress() |
String |
toString() |
protected InetAddr(Object[] parts)
public InetAddr(byte[] address, short maskBits)
public InetAddr(String cidrAddress) throws IllegalArgumentException
IllegalArgumentException
public InetAddr.Family getFamily()
public byte[] getAddress()
public void setAddress(byte[] address)
public byte[] getMaskAddress()
public int getMaskBits()
public void setMaskBits(short maskBits)
public static InetAddr parseInetAddr(String inetAddr, boolean allowShortNotation, InetAddr.Family family)
protected static Object[] parseN(String inetAddr, boolean allowShortNotation, InetAddr.Family family)
public InetAddress toInetAddress()
Copyright © 2013-2015 impossibl.com. All Rights Reserved.