Package org.xbill.DNS
Class APLRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.APLRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
APL - Address Prefix List.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAPLRecord(Name name, int dclass, long ttl, List<APLRecord.Element> elements) Creates an APL Record from the given data. -
Method Summary
Modifier and TypeMethodDescriptionprivate static intaddressLength(byte[] addr) Returns the list of APL elements.private static byte[]parseAddress(byte[] in, int length) 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 the type-specific RR to text format - must be overridden.protected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.private static booleanvalidatePrefixLength(int family, int prefixLength) Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
-
Field Details
-
elements
-
-
Constructor Details
-
APLRecord
APLRecord() -
APLRecord
Creates an APL Record from the given data.- Parameters:
elements- The list of APL elements.
-
-
Method Details
-
validatePrefixLength
private static boolean validatePrefixLength(int family, int prefixLength) -
parseAddress
- Throws:
WireParseException
-
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
Description copied from class:RecordConverts the type-specific RR to text format - must be overridden.- Specified by:
rrToStringin classRecord
-
getElements
Returns the list of APL elements. -
addressLength
private static int addressLength(byte[] addr) -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-