Package com.snmp4j.smi
Enum Class SmiManager.OctetStringDefaultFormat
java.lang.Object
java.lang.Enum<SmiManager.OctetStringDefaultFormat>
com.snmp4j.smi.SmiManager.OctetStringDefaultFormat
- All Implemented Interfaces:
Serializable
,Comparable<SmiManager.OctetStringDefaultFormat>
,java.lang.constant.Constable
- Enclosing class:
- SmiManager
public static enum SmiManager.OctetStringDefaultFormat
extends Enum<SmiManager.OctetStringDefaultFormat>
The default formats to be applied for displaying
OctetString
s.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUse 7-bit printing withSNMP4JSettings.setDefaultNonPrintableEscapeCharacter(Character)
taken into account for non-printable characters (fall-back toHexadecimal
if no escape character is specified).Use binary representation with ':' as byte separator character.Use decimal representation with '.' as byte separator character.Use hexadecimal representation with ':' as byte separator character.Use the MIB's DISPLAY-HINT clause if present and then the ASCII representation with takingSNMP4JSettings.setDefaultNonPrintableEscapeCharacter(Character)
into acount. -
Method Summary
Modifier and TypeMethodDescriptionGets the DISPLAY-HINT format.Returns the enum constant of this class with the specified name.static SmiManager.OctetStringDefaultFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MIB
Use the MIB's DISPLAY-HINT clause if present and then the ASCII representation with takingSNMP4JSettings.setDefaultNonPrintableEscapeCharacter(Character)
into acount. -
ASCII
Use 7-bit printing withSNMP4JSettings.setDefaultNonPrintableEscapeCharacter(Character)
taken into account for non-printable characters (fall-back toHexadecimal
if no escape character is specified). -
Hexadecimal
Use hexadecimal representation with ':' as byte separator character. -
Decimal
Use decimal representation with '.' as byte separator character. -
Binary
Use binary representation with ':' as byte separator character.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getDisplayHint
Gets the DISPLAY-HINT format.- Returns:
- a DISPLAY-HINT format for OCTET-STRING.
-