Package org.xbill.DNS
Class Compression
java.lang.Object
org.xbill.DNS.Compression
DNS Name Compression object.
- Author:
- Brian Wellington
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Compression
public Compression()Creates a new Compression object.
-
-
Method Details
-
add
Adds a compression entry mapping a name to a position in a message.- Parameters:
pos- The position at which the name is added.name- The name being added to the message.
-
get
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.- Returns:
- The position of the name, or -1 if not found.
-