|
||||||||||
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. |
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 OIDTextFormat
value
- the OID value to format.
public int[] parse(java.lang.String text) throws java.text.ParseException
parse
in interface OIDTextFormat
text
- a textual representation of an OID.
java.text.ParseException
- if the OID cannot be parsed successfully.
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |