public abstract class DhcpOption extends Object
Constructor and Description |
---|
DhcpOption() |
Modifier and Type | Method and Description |
---|---|
static Class<?> |
getClassByTag(int tag) |
byte[] |
getData()
Get the data (wire format) into a byte array.
|
abstract byte |
getTag()
Get the option's code tag.
|
static int |
getTagByClass(Class<?> c) |
void |
setData(byte[] data)
Set the data (wire format) from a byte array.
|
void |
writeTo(ByteBuffer out) |
public DhcpOption()
public static Class<?> getClassByTag(int tag)
public static int getTagByClass(Class<?> c)
public abstract byte getTag()
public void setData(byte[] data)
data
- public byte[] getData()
setData(byte[])
.public final void writeTo(ByteBuffer out)
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.