1. /*
  2. * @(#)file SnmpEntryOid.java
  3. * @(#)author Sun Microsystems, Inc.
  4. * @(#)version 1.4
  5. * @(#)date 04/09/15
  6. *
  7. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  8. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  9. */
  10. package com.sun.jmx.snmp.agent;
  11. import com.sun.jmx.snmp.SnmpOid;
  12. /**
  13. * This class only adds a new constructor to SnmpOid...
  14. *
  15. **/
  16. class SnmpEntryOid extends SnmpOid {
  17. /**
  18. * Constructs a new <CODE>SnmpOid</CODE> from the specified
  19. * component array, starting at given position.
  20. *
  21. * @param oid The original OID array
  22. * @param start The position at which to begin.
  23. *
  24. **/
  25. public SnmpEntryOid(long[] oid, int start) {
  26. final int subLength = oid.length - start;
  27. final long[] subOid = new long[subLength];
  28. java.lang.System.arraycopy(oid, start, subOid, 0, subLength) ;
  29. components = subOid;
  30. componentCount = subLength;
  31. }
  32. }