public class OtherOptionAttribute extends Object
| Constructor and Description |
|---|
OtherOptionAttribute() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlias()
Get the alias of this other option.
|
OptionFormat |
getFormat()
Get the format of this other option.
|
int |
getLength()
Get the the length of the other option.
|
int |
getNumber()
Get the number of this other option.
|
InputStream |
getValue()
Get the value of this other option.
|
String |
getValueAsHex()
Get the option value as hexadecimal string.
|
long |
getValueAsNumber()
Get the value as number.
|
String |
getValueAsString()
Get value as UTF-8 string.
|
boolean |
isCritical()
Checks if option is critical.
|
boolean |
isEmpty()
Check if the option is empty.
|
boolean |
isNoCacheKey()
Checks if option with this number is a NoCacheKey option.
|
boolean |
isUnsafe()
Checks if option with this number is unsafe.
|
public String getAlias()
public int getNumber()
public OptionFormat getFormat()
public int getLength()
public InputStream getValue()
public long getValueAsNumber()
public String getValueAsHex()
public String getValueAsString()
public boolean isCritical()
true if is option critical, otherwise false.public boolean isUnsafe()
true if this is an unsafe option, otherwise false.public boolean isNoCacheKey()
true if this is NoCacheKey option, otherwise false.public boolean isEmpty()
Copyright © 2019–2024 Teslanet.nl. All rights reserved.