Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JRE 8 rt.jar - com.* Package Source Code
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime environment included in JDK 8. JRE 8 rt.jar libraries are divided into 6 packages:
com.* - Internal Oracle and Sun Microsystems libraries java.* - Standard Java API libraries. javax.* - Extended Java API libraries. jdk.* - JDK supporting libraries. org.* - Third party libraries. sun.* - Old libraries developed by Sun Microsystems.
JAR File Information:
Directory of C:\fyicenter\jdk-1.8.0_191\jre\lib 63,596,151 rt.jar
Here is the list of Java classes of the com.* package in JRE 1.8.0_191 rt.jar. Java source codes are also provided.
✍: FYIcenter
⏎ com/sun/jmx/snmp/SnmpOidTableSupport.java
/* * * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ // Copyright (c) 1995-96 by Cisco Systems, Inc. package com.sun.jmx.snmp; // java import // import java.util.Objects; import java.util.Vector; import java.util.Enumeration; import java.util.logging.Level; import java.util.Hashtable; //RI import import static com.sun.jmx.defaults.JmxProperties.SNMP_LOGGER; /** * Contains metadata definitions for MIB variables. * A name can be resolved against a table of MIB variables. * Each entry in the table is an <CODE>SnmpOidRecord</CODE> object that contains a name, a dot-separated OID string, * and the corresponding SMI type of the variable. * <P> * If you need to load a specific <CODE>SnmpOidTable</CODE>, just call the static method * {@link com.sun.jmx.snmp.SnmpOid#setSnmpOidTable <CODE>SnmpOid.setSnmpOidTable(<I>myOidTable</I>)</CODE>}. * <P> * <p><b>This API is a Sun Microsystems internal API and is subject * to change without notice.</b></p> * @see com.sun.jmx.snmp.SnmpOidRecord * */ public class SnmpOidTableSupport implements SnmpOidTable { /** * Creates an <CODE>SnmpOidTableSupport</CODE> with the specified name. * This name identifies the MIB to which belong the MIB variables contained * in this <CODE>SnmpOidTableSupport</CODE> object. * @param name The OID table name. */ public SnmpOidTableSupport(String name) { myName=name; } /** * Searches for a MIB variable given its logical name and returns an {@link com.sun.jmx.snmp.SnmpOidRecord} object * containing information on the variable. * * @param name The name of the MIB variable. * @return The <CODE>SnmpOidRecord</CODE> object containing information on the variable. * @exception SnmpStatusException If the variable is not found. */ @Override public SnmpOidRecord resolveVarName(String name) throws SnmpStatusException { SnmpOidRecord var = oidStore.get(name) ; if (var != null) { return var; } else { throw new SnmpStatusException("Variable name <" + name + "> not found in Oid repository") ; } } /** * Searches for a MIB variable given its OID and returns an {@link com.sun.jmx.snmp.SnmpOidRecord} object * containing information on the variable. * * @param oid The OID of the MIB variable. * @return The <CODE>SnmpOidRecord</CODE> object containing information on the variable. * @exception SnmpStatusException If the variable is not found. */ @Override public SnmpOidRecord resolveVarOid(String oid) throws SnmpStatusException { // Try to see if the variable name is actually an OID to resolve. // int index = oid.indexOf('.') ; if (index < 0) { throw new SnmpStatusException("Variable oid <" + oid + "> not found in Oid repository") ; } if (index == 0) { // The oid starts with a '.' ala CMU. // oid= oid.substring(1, oid.length()); } // Go through the oidStore ... Good luck ! // for(Enumeration<SnmpOidRecord> list= oidStore.elements(); list.hasMoreElements(); ) { SnmpOidRecord element= list.nextElement(); if (element.getOid().equals(oid)) return element; } throw new SnmpStatusException("Variable oid <" + oid + "> not found in Oid repository") ; } /** * Returns a list that can be used to traverse all the entries in this <CODE>SnmpOidTable</CODE>. * @return A vector of {@link com.sun.jmx.snmp.SnmpOidRecord} objects. */ @Override public Vector<SnmpOidRecord> getAllEntries() { Vector<SnmpOidRecord> elementsVector = new Vector<>(); // get the locally defined elements ... for (Enumeration<SnmpOidRecord> e = oidStore.elements(); e.hasMoreElements(); ) { elementsVector.addElement(e.nextElement()); } return elementsVector ; } /** * Loads a list of variables into the storage area, * which is kept in memory. If you have new MIB variables, * this method can be called to load them. * @param mibs The list of variables to load. */ public synchronized void loadMib(SnmpOidRecord[] mibs) { try { for (int i = 0; ; i++) { SnmpOidRecord s = mibs[i] ; if (SNMP_LOGGER.isLoggable(Level.FINER)) { SNMP_LOGGER.logp(Level.FINER, SnmpOidTableSupport.class.getName(), "loadMib", "Load " + s.getName()); } oidStore.put(s.getName(), s) ; } } catch (ArrayIndexOutOfBoundsException e) { } } /** * Checks if the specified <CODE>Object</CODE> is equal to this <CODE>SnmpOidTableSupport</CODE>. * @param object The <CODE>Object</CODE> to be compared. * @return <CODE>true</CODE> if <CODE>object</CODE> is an <CODE>SnmpOidTableSupport</CODE> instance and equals to this, * <CODE>false</CODE> otherwise. */ @Override public boolean equals(Object object) { if (!(object instanceof SnmpOidTableSupport)) { return false; } SnmpOidTableSupport val = (SnmpOidTableSupport) object; return myName.equals(val.getName()); } @Override public int hashCode() { return Objects.hashCode(myName); } /** * Returns the name identifying this <CODE>SnmpOidTableSupport</CODE> object. * @return The OID table name. */ public String getName() { return myName; } /* * ------------------------------------------ * PRIVATE METHODS * ------------------------------------------ */ private Hashtable<String, SnmpOidRecord> oidStore = new Hashtable<>(); private String myName; }
⏎ com/sun/jmx/snmp/SnmpOidTableSupport.java
Or download all of them as a single archive file:
File name: jre-rt-com-1.8.0_191-src.zip File size: 8099783 bytes Release date: 2018-10-28 Download
⇒ Backup JDK 8 Installation Directory
2023-02-07, 251876👍, 3💬
Popular Posts:
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
What Is jaxb-impl-2.1.12.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Jav...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...
What Is junit-3.8.1.jar? junit-3.8.1.jar is the version 3.8.1 of JUnit JAR library file. JUnit is a ...