Package org.xbill.DNS
Class WKSRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.WKSRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Well Known Services - Lists services offered by this host.
- Author:
- Brian Wellington
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIP protocol identifiers.static class -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionWKSRecord(Name name, int dclass, long ttl, InetAddress address, int protocol, int[] services) Creates a WKS Record from the given data -
Method Summary
Modifier and TypeMethodDescriptionReturns the IP address.intReturns the IP protocol.int[]Returns the services provided by the host on the specified address.protected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected StringConverts rdata to a Stringprotected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Constructor Details
-
WKSRecord
public WKSRecord(Name name, int dclass, long ttl, InetAddress address, int protocol, int[] services) Creates a WKS Record from the given data- Parameters:
address- The IP addressprotocol- The IP protocol numberservices- An array of supported services, represented by port number.
-
-
Method Details
-
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin classRecord- Throws:
IOException
-
rrToString
Converts rdata to a String- Specified by:
rrToStringin classRecord
-
getAddress
Returns the IP address. -
getProtocol
public int getProtocol()Returns the IP protocol. -
getServices
public int[] getServices()Returns the services provided by the host on the specified address. -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-