|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.snmp4j.util.SimpleVariableTextFormat
public class SimpleVariableTextFormat
The SimpleVariableTextFormat implements a simple textual
representation for SNMP variables based on their type only.
No MIB information is used (can be used).
| Constructor Summary | |
|---|---|
SimpleVariableTextFormat()
Creates a simple variable text format. |
|
| Method Summary | |
|---|---|
java.lang.String |
format(OID instanceOID,
Variable variable,
boolean withOID)
Returns a textual representation of the supplied variable against the optionally supplied instance OID. |
Variable |
parse(int smiSyntax,
java.lang.String text)
This operation is not supported by SimpleVariableTextFormat. |
Variable |
parse(OID classOrInstanceOID,
java.lang.String text)
This operation is not supported by SimpleVariableTextFormat. |
VariableBinding |
parseVariableBinding(java.lang.String text)
Parses a textual representation of a variable binding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleVariableTextFormat()
| Method Detail |
|---|
public java.lang.String format(OID instanceOID,
Variable variable,
boolean withOID)
format in interface VariableTextFormatinstanceOID - the instance OID variable is associated
with. If null the formatting cannot take any MIB
specification of the variable into account and has to format it based
on its type only.variable - the variable to format.withOID - if true the instanceOID should be included
in the textual representation to form a VariableBinding
representation.
public Variable parse(int smiSyntax,
java.lang.String text)
throws java.text.ParseException
SimpleVariableTextFormat.
parse in interface VariableTextFormatsmiSyntax - the SMI syntax identifier identifying the target
Variable.text - a textual representation of the variable.
Variable instance.
java.text.ParseException - if the variable cannot be parsed successfully.
public Variable parse(OID classOrInstanceOID,
java.lang.String text)
throws java.text.ParseException
SimpleVariableTextFormat.
parse in interface VariableTextFormatclassOrInstanceOID - the instance OID variable is associated with. Must not
be null.text - a textual representation of the variable.
Variable instance.
java.text.ParseException - if the variable cannot be parsed successfully.
public VariableBinding parseVariableBinding(java.lang.String text)
throws java.text.ParseException
VariableTextFormat
parseVariableBinding in interface VariableTextFormattext - a textual representation of the variable binding.
VariableBinding instance.
java.text.ParseException - if the variable binding 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 | ||||||||