public class IPAddress extends NetObject implements IFormattable
.NET documentation at https://docs.microsoft.com/en-us/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=9.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) |
IPAddress(byte[] address,
long scopeid) |
IPAddress(long newAddress) |
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() |
byte[] |
GetAddressBytes() |
AddressFamily |
getAddressFamily() |
boolean |
getIsIPv4MappedToIPv6() |
boolean |
getIsIPv6LinkLocal() |
boolean |
getIsIPv6Multicast() |
boolean |
getIsIPv6SiteLocal() |
boolean |
getIsIPv6Teredo() |
boolean |
getIsIPv6UniqueLocal() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
long |
getScopeId() |
static int |
HostToNetworkOrder(int host) |
static long |
HostToNetworkOrder(long host) |
static short |
HostToNetworkOrder(short host) |
static boolean |
IsLoopback(IPAddress address) |
IPAddress |
MapToIPv4() |
IPAddress |
MapToIPv6() |
static int |
NetworkToHostOrder(int network) |
static long |
NetworkToHostOrder(long network) |
static short |
NetworkToHostOrder(short network) |
static IPAddress |
Parse(java.lang.String ipString) |
void |
setAddress(long Address) |
void |
setJCOInstance(JCObject instance) |
void |
setScopeId(long ScopeId) |
static boolean |
TryParse(java.lang.String ipString,
JCORefOut<IPAddress> address) |
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToStringToIFormattable, ToStringpublic 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
public IPAddress(byte[] address,
long scopeid)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
public IPAddress(long newAddress)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
public IPAddress(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic 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,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException,
InvalidOperationException,
SocketException
public byte[] GetAddressBytes()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
PlatformNotSupportedException
public AddressFamily getAddressFamily() throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsIPv4MappedToIPv6()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public boolean getIsIPv6LinkLocal()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsIPv6Multicast()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsIPv6SiteLocal()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsIPv6Teredo()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsIPv6UniqueLocal()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IFormattablegetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IFormattablegetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IFormattablegetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IFormattablegetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface IFormattablegetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic long getScopeId()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException,
InvalidOperationException,
SocketException
public static int HostToNetworkOrder(int host)
throws java.lang.Throwable
java.lang.Throwablepublic static long HostToNetworkOrder(long host)
throws java.lang.Throwable
java.lang.Throwablepublic static short HostToNetworkOrder(short host)
throws java.lang.Throwable
java.lang.Throwablepublic static boolean IsLoopback(IPAddress address) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public IPAddress MapToIPv4() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public IPAddress MapToIPv6() throws java.lang.Throwable
java.lang.Throwablepublic static int NetworkToHostOrder(int network)
throws java.lang.Throwable
java.lang.Throwablepublic static long NetworkToHostOrder(long network)
throws java.lang.Throwable
java.lang.Throwablepublic static short NetworkToHostOrder(short network)
throws java.lang.Throwable
java.lang.Throwablepublic static IPAddress Parse(java.lang.String ipString) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, NullReferenceException, OutOfMemoryException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionNullReferenceExceptionOutOfMemoryExceptionFormatExceptionpublic void setAddress(long Address)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException,
InvalidOperationException,
SocketException
public void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setScopeId(long ScopeId)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
FormatException,
InvalidOperationException,
SocketException,
ArgumentNullException,
NotSupportedException
public static boolean TryParse(java.lang.String ipString,
JCORefOut<IPAddress> address)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
NullReferenceException,
ArgumentNullException,
OutOfMemoryException,
FormatException