public class NSEC extends Data
Modifier and Type | Field and Description |
---|---|
DnsName |
next
The next owner name that contains a authoritative data or a delegation point.
|
List<Record.TYPE> |
types
The RR types existing at the owner name.
|
Constructor and Description |
---|
NSEC(DnsName next,
List<Record.TYPE> types) |
NSEC(String next,
List<Record.TYPE> types) |
NSEC(String next,
Record.TYPE... types) |
Modifier and Type | Method and Description |
---|---|
(package private) static byte[] |
createTypeBitMap(List<Record.TYPE> types) |
Record.TYPE |
getType()
The payload type.
|
static NSEC |
parse(DataInputStream dis,
byte[] data,
int length) |
(package private) static List<Record.TYPE> |
readTypeBitMap(byte[] typeBitmap) |
void |
serialize(DataOutputStream dos)
The internal method used to serialize Data subclasses.
|
String |
toString() |
equals, hashCode, length, toByteArray, toOutputStream, toOutputStream
public final DnsName next
public final List<Record.TYPE> types
public NSEC(String next, List<Record.TYPE> types)
public NSEC(String next, Record.TYPE... types)
public NSEC(DnsName next, List<Record.TYPE> types)
public static NSEC parse(DataInputStream dis, byte[] data, int length) throws IOException
IOException
public Record.TYPE getType()
Data
public void serialize(DataOutputStream dos) throws IOException
Data
serialize
in class Data
dos
- the output stream to serialize to.IOException
- if an I/O error occurs.static byte[] createTypeBitMap(List<Record.TYPE> types)
static List<Record.TYPE> readTypeBitMap(byte[] typeBitmap) throws IOException
IOException