クラス
java.net.Inet6Addressの使用
Inet6Addressを使用するパッケージ
-
java.netでのInet6Addressの使用
Inet6Addressを返すjava.netのメソッド修飾子と型メソッド説明static Inet6AddressInet6Address.getByAddress(String host, byte[] addr, int scope_id) InetAddress.getByAddress(String,byte[])とまったく同様にしてInet6Addressを作成します。ただし、IPv6スコープIDが指定された数値に設定される点は異なります。static Inet6AddressInet6Address.getByAddress(String host, byte[] addr, NetworkInterface nif) InetAddress.getByAddress(String,byte[])とまったく同様にしてInet6Addressを作成します。ただし、指定されたインタフェースのaddrに指定されたアドレス・タイプに対応する値に、IPv6スコープIDが設定される点は異なります。