public interface OIDTextFormat
OIDTextFormat
provides a textual representation of a raw
object ID.Modifier and Type | Method and Description |
---|---|
String |
format(int[] value)
Returns a textual representation of a raw object ID, for example as
dotted string ("1.3.6.1.4") or object name ("ifDescr") depending on the
formats representation rules.
|
String |
formatForRoundTrip(int[] value)
Returns a textual representation of a raw object ID, for example as
dotted string ("1.3.6.1.4"), object name plus numerical index ("ifDescr.0"),
or other formats that can be parsed again with
parse(String) to a
the same OID value. |
int[] |
parse(String text)
Parses a textual representation of an object ID and returns its raw value.
|
String format(int[] value)
value
- the OID value to format.String formatForRoundTrip(int[] value)
parse(String)
to a
the same OID value.value
- the OID value to format.int[] parse(String text) throws ParseException
text
- a textual representation of an OID.ParseException
- if the OID cannot be parsed successfully.Copyright © 2022 SNMP4J.org. All rights reserved.