public class IPv4AddressPattern extends AbstractIPAddressPattern
1. An empty component is considered as a 0-255 range. Examples:
2. Ranges with missing bounds but still including the "-" sign are interpreted as a range with the lower bound equal to zero for a missing lower bound, and an upper bound equal to 255 if the upper bound is missing. Examples:
3. Valid values for range bounds and single values are positive integers in the range 0 ... 255. A pattern containing any invalid value will be ignored.
4. A pattern describing more than 4 components or containing characters other than decimal digits, '-', '.' or spaces will be ignored.
|Constructor and Description|
Initialize this object with the specified string pattern.
|Modifier and Type||Method and Description|
Determine whether the specified IP address matches this pattern.
convertSource, matches, postProcess, preProcess, toString
public boolean matches(InetAddress ip)
Copyright © 2005-2015 JPPF Team.