public class IPAddress extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.IPAddress
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Net.Primitives, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Net.Primitives
|
static java.lang.String |
className
Qualified class name: System.Net.IPAddress
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
IPAddress() |
IPAddress(byte[] address)
Initializes a new instance by invoking the .NET constructor.
|
IPAddress(byte[] address,
long scopeid)
Initializes a new instance by invoking the .NET constructor.
|
IPAddress(long newAddress)
Initializes a new instance by invoking the .NET constructor.
|
IPAddress(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static IPAddress |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into IPAddress, a cast assert is made to check if types are compatible. |
long |
getAddress()
Gets the value of the .NET property Address.
|
byte[] |
GetAddressBytes()
Invokes the .NET member GetAddressBytes.
|
AddressFamily |
getAddressFamily()
Gets the value of the .NET property AddressFamily.
|
boolean |
getIsIPv4MappedToIPv6()
Gets the value of the .NET property IsIPv4MappedToIPv6.
|
boolean |
getIsIPv6LinkLocal()
Gets the value of the .NET property IsIPv6LinkLocal.
|
boolean |
getIsIPv6Multicast()
Gets the value of the .NET property IsIPv6Multicast.
|
boolean |
getIsIPv6SiteLocal()
Gets the value of the .NET property IsIPv6SiteLocal.
|
boolean |
getIsIPv6Teredo()
Gets the value of the .NET property IsIPv6Teredo.
|
boolean |
getIsIPv6UniqueLocal()
Gets the value of the .NET property IsIPv6UniqueLocal.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
long |
getScopeId()
Gets the value of the .NET property ScopeId.
|
static int |
HostToNetworkOrder(int host)
Invokes the .NET member HostToNetworkOrder.
|
static long |
HostToNetworkOrder(long host)
Invokes the .NET member HostToNetworkOrder.
|
static short |
HostToNetworkOrder(short host)
Invokes the .NET member HostToNetworkOrder.
|
static boolean |
IsLoopback(IPAddress address)
Invokes the .NET member IsLoopback.
|
IPAddress |
MapToIPv4()
Invokes the .NET member MapToIPv4.
|
IPAddress |
MapToIPv6()
Invokes the .NET member MapToIPv6.
|
static int |
NetworkToHostOrder(int network)
Invokes the .NET member NetworkToHostOrder.
|
static long |
NetworkToHostOrder(long network)
Invokes the .NET member NetworkToHostOrder.
|
static short |
NetworkToHostOrder(short network)
Invokes the .NET member NetworkToHostOrder.
|
static IPAddress |
Parse(java.lang.String ipString)
Invokes the .NET member Parse.
|
void |
setAddress(long Address)
Sets the value of the .NET property Address.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setScopeId(long ScopeId)
Sets the value of the .NET property ScopeId.
|
static boolean |
TryParse(java.lang.String ipString,
JCORefOut<IPAddress> address)
Invokes the .NET member TryParse.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public IPAddress()
throws java.lang.Throwable
java.lang.Throwablepublic IPAddress(byte[] address)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
address - the argument of type byte[]java.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic IPAddress(byte[] address,
long scopeid)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
address - the argument of type byte[]scopeid - the argument of type longjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic IPAddress(long newAddress)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
newAddress - the argument of type longjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic IPAddress(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static IPAddress cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into IPAddress, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedIPAddress instancejava.lang.Throwable - in case of error during cast operationpublic long getAddress()
throws java.lang.Throwable,
InvalidOperationException,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException,
SocketException
java.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itSocketException - if the .NET member raises itpublic byte[] GetAddressBytes()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic AddressFamily getAddressFamily() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsIPv4MappedToIPv6()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic boolean getIsIPv6LinkLocal()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsIPv6Multicast()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsIPv6SiteLocal()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsIPv6Teredo()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsIPv6UniqueLocal()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic long getScopeId()
throws java.lang.Throwable,
InvalidOperationException,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException,
SocketException
java.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itSocketException - if the .NET member raises itpublic static int HostToNetworkOrder(int host)
throws java.lang.Throwable
host - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static long HostToNetworkOrder(long host)
throws java.lang.Throwable
host - the argument of type longjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static short HostToNetworkOrder(short host)
throws java.lang.Throwable
host - the argument of type shortjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean IsLoopback(IPAddress address) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
address - the argument of type IPAddressjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic IPAddress MapToIPv4() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic IPAddress MapToIPv6() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static int NetworkToHostOrder(int network)
throws java.lang.Throwable
network - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static long NetworkToHostOrder(long network)
throws java.lang.Throwable
network - the argument of type longjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static short NetworkToHostOrder(short network)
throws java.lang.Throwable
network - the argument of type shortjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static IPAddress Parse(java.lang.String ipString) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, FormatException
ipString - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itpublic void setAddress(long Address)
throws java.lang.Throwable,
InvalidOperationException,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException,
SocketException
Address - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itSocketException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setScopeId(long ScopeId)
throws java.lang.Throwable,
InvalidOperationException,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException,
SocketException,
ArgumentNullException
ScopeId - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itSocketException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static boolean TryParse(java.lang.String ipString,
JCORefOut<IPAddress> address)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentNullException,
ArrayTypeMismatchException,
OutOfMemoryException,
FormatException
ipString - the argument of type java.lang.Stringaddress - the argument of type JCORefOut<IPAddress>java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises it