org.apache.directory.server.dns.io.decoder
Class DnsMessageDecoder
java.lang.Object
org.apache.directory.server.dns.io.decoder.DnsMessageDecoder
public class DnsMessageDecoder
- extends Object
A decoder for DNS messages. The primary usage of the DnsMessageDecoder is by
calling the decode(ByteBuffer) method which will read the
message from the incoming ByteBuffer and build a DnsMessage
from it according to the DnsMessage encoding in RFC-1035.
- Author:
- Apache Directory Project
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DnsMessageDecoder
public DnsMessageDecoder()
decode
public DnsMessage decode(org.apache.mina.core.buffer.IoBuffer in)
throws IOException
- Decode the
IoBuffer into a DnsMessage.
- Parameters:
in -
- Returns:
- The
DnsMessage.
- Throws:
IOException
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.