java.lang.Object
org.minidns.record.Data
org.minidns.record.RRWithTarget
Field Summary
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRRWithTarget(DnsName target) Anchors this record's rdata to the given owner name.Method Summary
All MethodsMethods inherited from class Data
equals, getType, hashCode, length, toByteArray, toOutputStream, toOutputStreamModifier and TypeMethodDescriptionfinal booleanabstract Record.TYPEgetType()The payload type.final inthashCode()final intlength()Serialize this record, if that has not been done already, and report the resulting wire size.final byte[]Serialize this record, if that has not been done already, and return a copy of the result so callers cannot mutate the cached bytes.final voidWrite the binary representation of this payload to the givenDataOutputStream.final voidtoOutputStream(OutputStream outputStream) Write the binary representation to the given OutputStream.
Field Details
target
The target domain name
Constructor Details
RRWithTarget
Method Details
serialize
Description copied from class:DataThe internal method used to serialize Data subclasses.- Specified by:
serializein classData- Parameters:
dos- the output stream to serialize to.- Throws:
IOException- if an I/O error occurs.
toString
getTarget
Gets the owner name this record's rdata is anchored to.- Returns:
- the target domain name