org.snmp4j.util
Interface OIDTextFormat

All Known Implementing Classes:
SimpleOIDTextFormat

public interface OIDTextFormat

The OIDTextFormat provides a textual representation of a raw object ID.

Since:
1.10
Version:
1.10
Author:
Frank Fock

Method Summary
 java.lang.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.
 int[] parse(java.lang.String text)
          Parses a textual representation of an object ID and returns its raw value.
 

Method Detail

format

java.lang.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.

Parameters:
value - the OID value to format.
Returns:
the textual representation.

parse

int[] parse(java.lang.String text)
            throws java.text.ParseException
Parses a textual representation of an object ID and returns its raw value.

Parameters:
text - a textual representation of an OID.
Returns:
the raw OID value
Throws:
java.text.ParseException - if the OID cannot be parsed successfully.

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.