InetAddressclass IsMulticastAddress() method example. This example shows you how to use IsMulticastAddress() method.This method gives Utility routine to check if the InetAddress is an IP multicast address.
InetAddressclass IsMCSiteLocal() method example. This example shows you how to use IsMCSiteLocal() method.This method gives Utility routine to check if the multicast address has site scope.
InetAddressclass IsMCOrgLocal() method example. This example shows you how to use IsMCOrgLocal() method.This method gives Utility routine to check if the multicast address has organization scope.
InetAddressclass IsMCNodeLocal() method example. This example shows you how to use IsMCNodeLocal() method.This method gives Utility routine to check if the multicast address has node scope.
InetAddressclass IsMCLinkLocal() method example. This example shows you how to use IsMCLinkLocal() method.This method gives Utility routine to check if the multicast address has link scope.
InetAddressclass IsMCGlobal() method example. This example shows you how to use IsMCGlobal() method.This method gives Utility routine to check if the multicast address has global scope.
InetAddressclass IsLoopbackAddress() method example. This example shows you how to use IsLoopbackAddress() method.This method gives Utility routine to check if the InetAddress is a loopback address.
InetAddressclass IsLinkLocalAddress() method example. This example shows you how to use IsLinkLocalAddress() method.This method gives Utility routine to check if the InetAddress is an link local address.
InetAddressclass IsAnyLocalAddress() method example. This example shows you how to use IsAnyLocalAddress() method.This method gives Utility routine to check if the InetAddress in a wildcard address.
InetAddressclass GetHostName() method example. This example shows you how to use GetHostName() method.This method Gets the host name for this IP address.
InetAddressclass GetHostAddress() method example. This example shows you how to use GetHostAddress() method.This method Returns the IP address string in textual presentation.
InetAddressclass GetCanonicalHostName() method example. This example shows you how to use GetCanonicalHostName() method.This method Gets the fully qualified domain name for this IP address.
InetAddressclass GetByName() method example. This example shows you how to use GetByName() method.This method Determines the IP address of a host, given the host's name.
InetAddressclass GetAllByName() method example. This example shows you how to use GetAllByName() method.This method returns an array of its IP addresses, based on the configured name service on the system.
InetAddressclass GetAddress() method example. This example shows you how to use GetAddress() method.This method Returns the raw IP address of this InetAddress object.
InetAddressclass Equals() method example. This example shows you how to use Equals() method.This method Compares this object against the specified object.
MessageFormat class toPattern example. public String toPattern() Returns a pattern representing the current state of the message format. The string is constructed from internal information and therefore does not necessarily equal the previously applied pattern.
MessageFormat class setFormatsByArgumentIndex example. public void setFormatsByArgumentIndex(Format[] newFormats) Sets the formats to use for the values passed into format methods or returned from parse methods. The indices of elements in newFormats correspond to the argument indices used in the previously set pattern string
MessageFormat class setFormats example. public void setFormats(Format[] newFormats) Sets the formats to use for the format elements in the previously set pattern string. The order of formats in newFormats corresponds to the order of format elements in the pattern string.
MessageFormat class setFormatsByArgumentIndex example.public void setFormatByArgumentIndex(int argumentIndex, Format newFormat) Sets the format to use for the format elements within the previously set pattern string that use the given argument index. The argument index is part of the format element definition and represents an index into the arguments array passed to the format methods or the result array returned by the parse methods.
MessageFormat class setFormat example. public void setFormat(int formatElementIndex, Format newFormat) Sets the format to use for the format element with the given format element index within the previously set pattern string. The format element index is the zero-based number of the format element counting from the start of the pattern string.
MessageFormat class parseObject example. public Object parseObject(String source, ParsePosition pos) Parses text from a string to produce an object array. The method attempts to parse text starting at the index given by pos. If parsing succeeds, then the index of pos is updated to the index after the last character used (parsing does not necessarily use all characters up to the end of the string
MessageFormat class parse example. public Object[] parse(String source, ParsePosition pos) Parses the string. Caveats: The parse may fail in a number of circumstances.
MessageFormat class parse example. public Object[] parse(String source) throws ParseException Parses text from the beginning of the given string to produce an object array. The method may not use the entire text of the given string.