public class InetAddress extends java.lang.Object implements Appendable
Constructor and Description |
---|
InetAddress(IPVersion version,
java.lang.String textRep)
Construct an InetAddress of the specified version (either IPv4 or IPv6)
using its textual representation.
|
InetAddress(java.lang.String textRep)
Construct an IPv4 (default) InetAddress using its textual
representation.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
appendToElement(XMLWriter xmlWriter,
org.w3c.dom.Element parent)
Used internally for building a DOM representation of a service element.
|
java.lang.String |
getTextRep()
Get the textual representation of this Internet address.
|
java.lang.String |
getVersion()
Get the Internet Protocol version of this address.
|
public InetAddress(java.lang.String textRep)
public InetAddress(IPVersion version, java.lang.String textRep)
public java.lang.String getVersion()
Enumerates possible return
values.
public java.lang.String getTextRep()
public org.w3c.dom.Element appendToElement(XMLWriter xmlWriter, org.w3c.dom.Element parent)
Appendable
appendToElement
in interface Appendable