- getInstance
Returns the singleton instance of this validator, with local validation as
required.
- isValid
Returns true if the specified String parses as a valid domain name with a
recognized top-level domai
- isValidCountryCodeTld
Returns true if the specified String matches any IANA-defined country code
top-level domain. Leading
- isValidGenericTld
Returns true if the specified String matches any IANA-defined generic top-level
domain. Leading dots
- isValidTld
Returns true if the specified String matches any IANA-defined top-level domain.
Leading dots are ign
- isValidInfrastructureTld
Returns true if the specified String matches any IANA-defined infrastructure
top-level domain. Leadi
- isValidLocalTld
Returns true if the specified String matches any widely used "local" domains
(localhost or localdoma
- unicodeToASCII
Converts potentially Unicode input to punycode. If conversion fails, returns the
original input.
- arrayContains
Check if a sorted array contains the specified key
- chompLeadingDot
- isOnlyASCII
- updateTLDOverride
Update one of the TLD override arrays. This must only be done at program
startup, before any instanc