TibrvIPAddr()
Constructor
Declaration
TibrvIPAddr
(byte[] bytes)TibrvIPAddr
(
java.net.InetAddress inetAddr)TibrvIPAddr
(
byte b1,
byte b2,
byte b3,
byte b4)TibrvIPAddr
(
java.lang.String ipString)
throws java.lang.NumberFormatExceptionTibrvIPAddr
(int address)TibrvIPAddr
(TibrvIPAddr ipAddr)
Purpose
Parameter |
Description |
|
Create an IP address from an array of 4 bytes. For |
|
Create an IP address from these 4 bytes. For |
|
Create an IP address from a 32-bit integer, interpreted as 4 bytes in network byte order. |
|
Create an IP address from a string representation (for example, |
|
Copy this Java 4-byte Internet address into a TibrvIPAddr object with an equivalent value. (TibrvIPAddr supports only 4-byte IP addresses.) |
|
Make an independent copy of this TibrvIPAddr object. |
Remarks
If the ipString
argument does not represent a valid IP address, this constructor throws a java.lang.NumberFormatException
.