public class MailExchangeRecordDecoder extends Object implements RecordDecoder
3.3.9. MX RDATA format
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| PREFERENCE |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ EXCHANGE /
/ /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
where:
PREFERENCE
A 16 bit integer which specifies the preference given to this RR among
others at the same owner. Lower values are preferred.
EXCHANGE
A which specifies a host willing to act as a mail exchange
for the owner name.
| Constructor and Description |
|---|
MailExchangeRecordDecoder() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
decode(org.apache.mina.core.buffer.IoBuffer byteBuffer,
short length)
Decodes the given length of resource record data into attributes.
|
public Map<String,Object> decode(org.apache.mina.core.buffer.IoBuffer byteBuffer, short length) throws IOException
RecordDecoderdecode in interface RecordDecoderIOExceptionCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.