Package com.impossibl.postgres.api.data
Class InetAddr
- java.lang.Object
-
- com.impossibl.postgres.api.data.InetAddr
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InetAddr.Family
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
InetAddr
protected InetAddr(Object[] parts)
-
InetAddr
public InetAddr(byte[] address, short maskBits)
-
InetAddr
public InetAddr(String cidrAddress) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-
Method Detail
-
getFamily
public InetAddr.Family getFamily()
-
getAddress
public byte[] getAddress()
-
setAddress
public void setAddress(byte[] address)
-
getMaskAddress
public byte[] getMaskAddress()
-
getMaskBits
public int getMaskBits()
-
setMaskBits
public void setMaskBits(short maskBits)
-
parseInetAddr
public static InetAddr parseInetAddr(String inetAddr, boolean allowShorthandNotation)
-
parseInetAddr
public static InetAddr parseInetAddr(String inetAddr, boolean allowShortNotation, InetAddr.Family family)
-
parseN
protected static Object[] parseN(String inetAddr, boolean allowShortNotation, InetAddr.Family family)
-
toInetAddress
public InetAddress toInetAddress()
-
-