| java.lang.Object org.xbill.DNS.Compression
Compression | public class Compression (Code) | | DNS Name Compression object.
See Also: Message See Also: Name author: Brian Wellington |
Constructor Summary | |
public | Compression() Creates a new Compression object. |
Method Summary | |
public void | add(int pos, Name name) Adds a compression entry mapping a name to a position in a message. | public int | get(Name name) Retrieves the position of the given name, if it has been previously
included in the message.
Parameters: name - The name to find in the compression table. |
Compression | public Compression()(Code) | | Creates a new Compression object.
|
add | public void add(int pos, Name name)(Code) | | Adds a compression entry mapping a name to a position in a message.
Parameters: pos - The position at which the name is added. Parameters: name - The name being added to the message. |
get | public int get(Name name)(Code) | | Retrieves the position of the given name, if it has been previously
included in the message.
Parameters: name - The name to find in the compression table. The position of the name, or -1 if not found. |
|
|