Class UNKNOWN
java.lang.Object
org.minidns.record.Data
org.minidns.record.UNKNOWN
-
Method Summary
Modifier and TypeMethodDescriptiongetType()The payload type.intGet the binary type value of this payload.static UNKNOWNparse(DataInputStream dis, int payloadLength, int typeValue) static UNKNOWNparse(DataInputStream dis, int payloadLength, Record.TYPE type) Deprecated.voidThe internal method used to serialize Data subclasses.Methods inherited from class Data
equals, hashCode, length, toByteArray, toOutputStream, toOutputStream
-
Method Details
-
getType
Description copied from class:DataThe payload type. -
getTypeValue
Get the binary type value of this payload. In contrast togetType(), this also returns the actual value if the type is unknown to MiniDNS.- Returns:
- the binary type value.
-
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.
-
parse
public static UNKNOWN parse(DataInputStream dis, int payloadLength, int typeValue) throws IOException - Throws:
IOException
-
parse
@Deprecated public static UNKNOWN parse(DataInputStream dis, int payloadLength, Record.TYPE type) throws IOException Deprecated.useparse(DataInputStream, int, int)instead, as this loses the actual binary type value if the type is unknown to MiniDNS.Parse an UNKNOWN payload.- Parameters:
dis- the input stream.payloadLength- the length of the payload.type- the type of the payload.- Returns:
- the parsed payload.
- Throws:
IOException- in case of an I/O error.
-
parse(DataInputStream, int, int)instead, as this loses the actual binary type value if the type is unknown to MiniDNS.