[SNMP4J] Address type and parse method

Marco.Bresciani at alcatel.it Marco.Bresciani at alcatel.it
Fri Nov 3 15:12:00 CET 2006


Hello,
  with respect to this description 
http://www.snmp4j.org/doc/org/snmp4j/smi/GenericAddress.html#parse(java.lang.String) 
... Does an enum or a set of constants exists in order to have a reference 
to allowed types for address?

I found the address.properties file checking inside the JAr file and I saw 
the "udp", "tcp" and "ip" Strings but... there is a reference for 
programmer? Can I use an enum or final static values? It's not very 
"polite" to write "udp" hard-coded in the code... :-)

Thank you.

Ing. Marco Bresciani

-- 
Alcatel - WTD R&D SW CC
Via Trento, 30 - 20059 Vimercate (Mi) Italia
Phone: +39.039.686.5546
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d++ s: a C++ UL++ P+ L+++ E-- W++ N o-- K- w-- O- M- V- PS--
PE-- Y+ PGP++ t+ 5 X+ R+++ tv+ b++ DI++++ D+ G e+++ h! !r !y+ 
------END GEEK CODE BLOCK------



More information about the SNMP4J mailing list