DnsRecordEncoder implementation.
DefaultDnsRecordDecoder
| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | |
| protected void | |
| private void | |
| private void | |
| private void | |
| public final void | encodeQuestion(DnsQuestion question, ByteBuf
the output buffer where the encoded question will be written to out)Implements io. DnsQuestion.
|
| private void | |
| public void | encodeRecord(DnsRecord record, ByteBuf
the output buffer where the encoded record will be written to out)Implements io. DnsRecord.
|
| private void | |
| private static byte |
| PREFIX_MASK | back to summary |
|---|---|
| private static final int PREFIX_MASK | |
| DefaultDnsRecordEncoder | back to summary |
|---|---|
| protected DefaultDnsRecordEncoder() Creates a new instance. | |
| calculateEcsAddressLength | back to summary |
|---|---|
| pack-priv static int calculateEcsAddressLength(int sourcePrefixLength, int lowOrderBitsToPreserve) | |
| encodeName | back to summary |
|---|---|
| protected void encodeName(String name, ByteBuf buf) throws Exception | |
| encodeOptEcsRecord | back to summary |
|---|---|
| private void encodeOptEcsRecord(DnsOptEcsRecord record, ByteBuf out) throws Exception | |
| encodeOptPseudoRecord | back to summary |
|---|---|
| private void encodeOptPseudoRecord(DnsOptPseudoRecord record, ByteBuf out) throws Exception | |
| encodePtrRecord | back to summary |
|---|---|
| private void encodePtrRecord(DnsPtrRecord record, ByteBuf out) throws Exception | |
| encodeQuestion | back to summary |
|---|---|
| public final void encodeQuestion(DnsQuestion question, ByteBuf out) throws Exception Implements io. Doc from io. Encodes a | |
| encodeRawRecord | back to summary |
|---|---|
| private void encodeRawRecord(DnsRawRecord record, ByteBuf out) throws Exception | |
| encodeRecord | back to summary |
|---|---|
| public void encodeRecord(DnsRecord record, ByteBuf out) throws Exception Implements io. Doc from io. Encodes a | |
| encodeRecord0 | back to summary |
|---|---|
| private void encodeRecord0(DnsRecord record, ByteBuf out) throws Exception | |
| padWithZeros | back to summary |
|---|---|
| private static byte padWithZeros(byte b, int lowOrderBitsToPreserve) | |