public class SimpleOIDTextFormat extends Object implements OIDTextFormat
SimpleOIDTextFormat implements a simple textual
representation for object IDs as dotted string.| Constructor and Description |
|---|
SimpleOIDTextFormat()
Creates a simple OID text format.
|
| Modifier and Type | Method and Description |
|---|---|
String |
format(int[] value)
Returns a textual representation of a raw object ID as dotted
string ("1.3.6.1.4").
|
String |
formatForRoundTrip(int[] value)
Returns a textual representation of a raw object ID as dotted
string ("1.3.6.1.4").
|
static String |
formatOID(int[] value)
Returns a textual representation of a raw object ID as dotted
string ("1.3.6.1.4").
|
int[] |
parse(String text)
Parses a textual representation of an object ID as dotted string
(e.g.
|
static int[] |
parseOID(String text)
Parses a textual representation of an object ID as dotted string
(e.g.
|
public SimpleOIDTextFormat()
public static String formatOID(int[] value)
value - the OID value to format.public String format(int[] value)
format in interface OIDTextFormatvalue - the OID value to format.public String formatForRoundTrip(int[] value)
format(int[]).formatForRoundTrip in interface OIDTextFormatvalue - the OID value to format.public static int[] parseOID(String text) throws ParseException
text - a textual representation of an OID.ParseException - if the OID cannot be parsed successfully.public int[] parse(String text) throws ParseException
parse in interface OIDTextFormattext - a textual representation of an OID.ParseException - if the OID cannot be parsed successfully.Copyright © 2016 SNMP4J.org. All Rights Reserved.