org.apache.directory.server.dhcp.io
Class DhcpMessageDecoder

java.lang.Object
  extended by org.apache.directory.server.dhcp.io.DhcpMessageDecoder

public class DhcpMessageDecoder
extends java.lang.Object

Version:
$Rev: 902331 $, $Date: 2010-01-23 02:41:35 +0100 (Sat, 23 Jan 2010) $
Author:
Apache Directory Project

Constructor Summary
DhcpMessageDecoder()
           
 
Method Summary
 DhcpMessage decode(java.nio.ByteBuffer buffer)
          Convert a byte buffer into a DhcpMessage.
 OptionsField decodeOptions(java.nio.ByteBuffer message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DhcpMessageDecoder

public DhcpMessageDecoder()
Method Detail

decode

public DhcpMessage decode(java.nio.ByteBuffer buffer)
                   throws DhcpException
Convert a byte buffer into a DhcpMessage.

Parameters:
buffer - ByteBuffer to convert to a DhcpMessage object
Returns:
a DhcpMessage.
Throws:
DhcpException

decodeOptions

public OptionsField decodeOptions(java.nio.ByteBuffer message)
                           throws DhcpException
Throws:
DhcpException


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.