java.net.InetAddress (class)
Constructors:
(none)
General Description: Internet address socket. This class does not have a constructor. Instead use one of the static methods. Static Methods InetAddress getByName(String host); Return an InetAddress for host. InetAddress getAllByName(String host); Return all InetAddresses for host. InetAddress getLocalHost(); Get the localhost IP address.
Methods
String getHostAddress(); Get the numeric address.
byte[] getAddress(); Get the binary address.
boolean isMulticastAddress(); Check to see if the address is in the multicast range.
String getHostName(); Get the host's actual name.
Exceptions Thrown
UnknownHostException
PD: Could someone create a graphic here?Class HierarchyObject <- InputStream <- ByteArrayInputStream<- ObjectInputStream<- OutputStream <- ByteArrayOutputStream<- ObjectOutputStream<- Reader <- BufferedReader<- Writer <- PrintWriterPD: End Graphic