Package system.net
Class IPAddress
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.net.IPAddress
-
- All Implemented Interfaces:
IJCOBridgeReflected,IFormattable
public class IPAddress extends NetObject implements IFormattable
The base .NET class managing System.Net.IPAddress, System.Net.Primitives, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.IPAddress
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Net.Primitives, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Net.Primitivesstatic java.lang.StringclassNameQualified class name: System.Net.IPAddressstatic org.mases.jcobridge.JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IPAddresscast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoIPAddress, a cast assert is made to check if types are compatible.longgetAddress()byte[]GetAddressBytes()AddressFamilygetAddressFamily()booleangetIsIPv4MappedToIPv6()booleangetIsIPv6LinkLocal()booleangetIsIPv6Multicast()booleangetIsIPv6SiteLocal()booleangetIsIPv6Teredo()booleangetIsIPv6UniqueLocal()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectorg.mases.jcobridge.JCTypegetJCOType()Returns the instantiated class TypelonggetScopeId()static intHostToNetworkOrder(int host)static longHostToNetworkOrder(long host)static shortHostToNetworkOrder(short host)static booleanIsLoopback(IPAddress address)IPAddressMapToIPv4()IPAddressMapToIPv6()static intNetworkToHostOrder(int network)static longNetworkToHostOrder(long network)static shortNetworkToHostOrder(short network)static IPAddressParse(java.lang.String ipString)voidsetAddress(long Address)voidsetJCOInstance(org.mases.jcobridge.JCObject instance)voidsetScopeId(long ScopeId)static booleanTryParse(java.lang.String ipString, JCORefOut<IPAddress> address)-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.IFormattable
ToString
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Net.Primitives, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Net.Primitives- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Net.IPAddress- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
Constructor Detail
-
IPAddress
public IPAddress(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
IPAddress
public IPAddress() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
IPAddress
public IPAddress(byte[] address, long scopeid) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
-
IPAddress
public IPAddress(byte[] address) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
IPAddress
public IPAddress(long newAddress) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIFormattable- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIFormattable- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIFormattable- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIFormattable- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public org.mases.jcobridge.JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIFormattable- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static IPAddress cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoIPAddress, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
IPAddressinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
IsLoopback
public static boolean IsLoopback(IPAddress address) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
TryParse
public static boolean TryParse(java.lang.String ipString, JCORefOut<IPAddress> address) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentNullException, OutOfMemoryException, FormatException
-
GetAddressBytes
public byte[] GetAddressBytes() throws java.lang.Throwable, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException
-
HostToNetworkOrder
public static short HostToNetworkOrder(short host) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
NetworkToHostOrder
public static short NetworkToHostOrder(short network) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
HostToNetworkOrder
public static int HostToNetworkOrder(int host) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
NetworkToHostOrder
public static int NetworkToHostOrder(int network) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
HostToNetworkOrder
public static long HostToNetworkOrder(long host) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
NetworkToHostOrder
public static long NetworkToHostOrder(long network) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
MapToIPv4
public IPAddress MapToIPv4() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
-
MapToIPv6
public IPAddress MapToIPv6() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Parse
public static IPAddress Parse(java.lang.String ipString) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionFormatException
-
getIsIPv4MappedToIPv6
public boolean getIsIPv4MappedToIPv6() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException
-
getIsIPv6LinkLocal
public boolean getIsIPv6LinkLocal() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsIPv6Multicast
public boolean getIsIPv6Multicast() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsIPv6SiteLocal
public boolean getIsIPv6SiteLocal() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsIPv6Teredo
public boolean getIsIPv6Teredo() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsIPv6UniqueLocal
public boolean getIsIPv6UniqueLocal() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getAddress
public long getAddress() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidOperationException, SocketException
-
setAddress
public void setAddress(long Address) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidOperationException, SocketException
-
getScopeId
public long getScopeId() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidOperationException, SocketException
-
setScopeId
public void setScopeId(long ScopeId) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidOperationException, SocketException, ArgumentNullException, NotSupportedException
-
getAddressFamily
public AddressFamily getAddressFamily() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-