Package org.opennms.protocols.snmp

Examples of org.opennms.protocols.snmp.SnmpOctetString


         throws MappingFailedException
      {
         String s = (String)value;
           
         return new SnmpVarBind(new SnmpObjectId(oid),
                                new SnmpOctetString(s.getBytes()));
      }
View Full Code Here


          ssy = new SnmpUInt32(uin);
        }
            else if (val instanceof String)
            {
          String in = (String) val;
          ssy = new SnmpOctetString(in.getBytes());
        }
            else if (val instanceof Integer)
            {
          Integer in = (Integer) val;
          ssy = new SnmpInt32(in);
View Full Code Here

TOP

Related Classes of org.opennms.protocols.snmp.SnmpOctetString

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.