|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.snmp4j.util.SimpleOIDTextFormat
public class SimpleOIDTextFormat
The SimpleOIDTextFormat implements a simple textual
representation for object IDs as dotted string.
| Constructor Summary | |
|---|---|
SimpleOIDTextFormat()
Creates a simple OID text format. |
|
| Method Summary | |
|---|---|
java.lang.String |
format(int[] value)
Returns a textual representation of a raw object ID as dotted string ("1.3.6.1.4"). |
int[] |
parse(java.lang.String text)
Parses a textual representation of an object ID as dotted string (e.g. "1.3.6.1.2.1.1") and returns its raw value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleOIDTextFormat()
| Method Detail |
|---|
public java.lang.String format(int[] value)
format in interface OIDTextFormatvalue - the OID value to format.
public int[] parse(java.lang.String text)
throws java.text.ParseException
parse in interface OIDTextFormattext - a textual representation of an OID.
java.text.ParseException - if the OID cannot be parsed successfully.
|
Copyright 2003-2009 Frank Fock and Jochen Katz (SNMP4J.org) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||