Method Summary |
|
public Name | add(int posn, String comp) Adds the given component to the list of components at the specified
index. |
public Name | add(String comp) Adds the given component to the end of the current name. |
public Name | addAll(int posn, Name name) Add given components to the current name. |
public Name | addAll(Name name) Add given components to the end of current name. |
public Object | clone() Returns clone of the current name. |
public int | compareTo(Object name) Compares the specified name with the current name. |
static boolean | componentIsOk(String comp) Checks if the given string is a correct DNS name component. |
public boolean | endsWith(Name name) Checks if the current name ends with the given name. |
public String | get(int posn) |
public Enumeration<String> | getAll() Returns all components of the current name. |
public Name | getPrefix(int posn) |
public Name | getSuffix(int posn) |
public boolean | isAbsolute() |
public boolean | isEmpty() |
public Object | remove(int posn) Removes component with specified number. |
public int | size() |
public boolean | startsWith(Name name) Checks if the current name starts with the given name. |
public String | toString() Returns the string representation of this DNS name. |