public class Wire
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Wire.Header |
static class |
Wire.Question |
static class |
Wire.RR |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_LABEL_LEN |
static int |
POINTER_BYTE_FLAG |
static int |
POINTER_BYTE_MASK |
static int |
POINTER_FLAG
Top two bits of a two-byte octet set, for length compression.
|
static int |
POINTER_MASK
Flag to mask that two-byte pointer with
|
| Constructor and Description |
|---|
Wire() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnswer(Wire.RR answer) |
java.util.List<Wire.RR> |
getAnswers() |
Wire.Header |
getHeader() |
Wire.Question |
getQuestion() |
void |
load(java.nio.ByteBuffer bb) |
void |
setQuestion(Wire.Question q) |
java.nio.ByteBuffer |
store() |
public static final int MAX_LABEL_LEN
public static final int POINTER_FLAG
public static final int POINTER_BYTE_FLAG
public static final int POINTER_MASK
public static final int POINTER_BYTE_MASK
public Wire.Header getHeader()
public void setQuestion(Wire.Question q)
public Wire.Question getQuestion()
public void addAnswer(Wire.RR answer)
public java.util.List<Wire.RR> getAnswers()
public java.nio.ByteBuffer store()
throws DNSFormatException
DNSFormatExceptionpublic void load(java.nio.ByteBuffer bb)
throws DNSFormatException
DNSFormatExceptionCopyright © 2018 Apigee Corporation. All Rights Reserved.