Class Data
java.lang.Object
org.minidns.record.Data
- Direct Known Subclasses:
DelegatingDnssecRR, DNSKEY, InternetAddressRR, MX, NSEC, NSEC3, NSEC3PARAM, OPENPGPKEY, OPT, RRSIG, RRWithTarget, SOA, TLSA, TXT, UNKNOWN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanabstract Record.TYPEgetType()The payload type.final inthashCode()final intlength()protected abstract voidThe internal method used to serialize Data subclasses.final byte[]final voidWrite the binary representation of this payload to the givenDataOutputStream.final voidtoOutputStream(OutputStream outputStream)
-
Constructor Details
-
Data
public Data()
-
-
Method Details
-
getType
-
serialize
The internal method used to serialize Data subclasses.- Parameters:
dos- the output stream to serialize to.- Throws:
IOException- if an I/O error occurs.
-
length
-
toOutputStream
- Throws:
IOException
-
toOutputStream
Write the binary representation of this payload to the givenDataOutputStream.- Parameters:
dos- the DataOutputStream to write to.- Throws:
IOException- if an I/O error occurs.
-
toByteArray
-
hashCode
-
equals
-