| |
|
| java.lang.Object org.apache.harmony.jndi.provider.dns.DNSNameParser
DNSNameParser | public class DNSNameParser implements NameParser(Code) | | DNS name parser
|
Constructor Summary | |
public | DNSNameParser() Constructs a new name parser. |
DNSNameParser | public DNSNameParser()(Code) | | Constructs a new name parser.
|
equals | public boolean equals(Object obj)(Code) | | Parameters: obj - the object to compare with true if and only if the given object is instanceof class DNSParser ; otherwise returnsfalse . |
parse | public Name parse(String name) throws InvalidNameException(Code) | | Parses string representation of DNS name. Following situations will be
treated as an error:
- The length of the whole name is longer than 255 characters
- The length of each label is more than 63 characters
- more than one null label encountered or null label is not the least
specific label (the rightmost)
Parameters: name - string representation of DNS name new instance of DNSName class throws: InvalidNameException - if given string is not a correct DNS name See Also: javax.naming.NameParser.parse(java.lang.String) See Also: RFC See Also: 1034 |
|
|
|