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/SnmpInt.java
/* * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.jmx.snmp; import com.sun.jmx.snmp.Enumerated; /** * Represents an SNMP integer. * * <p><b>This API is a Sun Microsystems internal API and is subject * to change without notice.</b></p> */ public class SnmpInt extends SnmpValue { private static final long serialVersionUID = -7163624758070343373L; // CONSTRUCTORS //------------- /** * Constructs a new <CODE>SnmpInt</CODE> from the specified integer value. * @param v The initialization value. * @exception IllegalArgumentException The specified value is smaller than <CODE>Integer.MIN_VALUE</CODE> * or larger than <CODE>Integer.MAX_VALUE</CODE>. */ public SnmpInt(int v) throws IllegalArgumentException { if ( isInitValueValid(v) == false ) { throw new IllegalArgumentException() ; } value = (long)v ; } /** * Constructs a new <CODE>SnmpInt</CODE> from the specified <CODE>Integer</CODE> value. * @param v The initialization value. * @exception IllegalArgumentException The specified value is smaller than <CODE>Integer.MIN_VALUE</CODE> * or larger than <CODE>Integer.MAX_VALUE</CODE>. */ public SnmpInt(Integer v) throws IllegalArgumentException { this(v.intValue()) ; } /** * Constructs a new <CODE>SnmpInt</CODE> from the specified long value. * @param v The initialization value. * @exception IllegalArgumentException The specified value is smaller than <CODE>Integer.MIN_VALUE</CODE> * or larger than <CODE>Integer.MAX_VALUE</CODE>. */ public SnmpInt(long v) throws IllegalArgumentException { if ( isInitValueValid(v) == false ) { throw new IllegalArgumentException() ; } value = v ; } /** * Constructs a new <CODE>SnmpInt</CODE> from the specified <CODE>Long</CODE> value. * @param v The initialization value. * @exception IllegalArgumentException The specified value is smaller than <CODE>Integer.MIN_VALUE</CODE> * or larger than <CODE>Integer.MAX_VALUE</CODE>. */ public SnmpInt(Long v) throws IllegalArgumentException { this(v.longValue()) ; } /** * Constructs a new <CODE>SnmpInt</CODE> from the specified <CODE>Enumerated</CODE> value. * @param v The initialization value. * @exception IllegalArgumentException The specified value is smaller than <CODE>Integer.MIN_VALUE</CODE> * or larger than <CODE>Integer.MAX_VALUE</CODE>. * @see Enumerated */ public SnmpInt(Enumerated v) throws IllegalArgumentException { this(v.intValue()) ; } /** * Constructs a new <CODE>SnmpInt</CODE> from the specified boolean value. * This constructor applies rfc1903 rule: * <p><blockquote><pre> * TruthValue ::= TEXTUAL-CONVENTION * STATUS current * DESCRIPTION * "Represents a boolean value." * SYNTAX INTEGER { true(1), false(2) } * </pre></blockquote> * @param v The initialization value. */ public SnmpInt(boolean v) { value = v ? 1 : 2 ; } // PUBLIC METHODS //--------------- /** * Returns the long value of this <CODE>SnmpInt</CODE>. * @return The value. */ public long longValue() { return value ; } /** * Converts the integer value to its <CODE>Long</CODE> form. * @return The <CODE>Long</CODE> representation of the value. */ public Long toLong() { return new Long(value) ; } /** * Converts the integer value to its integer form. * @return The integer representation of the value. */ public int intValue() { return (int) value ; } /** * Converts the integer value to its <CODE>Integer</CODE> form. * @return The <CODE>Integer</CODE> representation of the value. */ public Integer toInteger() { return new Integer((int)value) ; } /** * Converts the integer value to its <CODE>String</CODE> form. * @return The <CODE>String</CODE> representation of the value. */ public String toString() { return String.valueOf(value) ; } /** * Converts the integer value to its <CODE>SnmpOid</CODE> form. * @return The OID representation of the value. */ public SnmpOid toOid() { return new SnmpOid(value) ; } /** * Extracts the integer from an index OID and returns its * value converted as an <CODE>SnmpOid</CODE>. * @param index The index array. * @param start The position in the index array. * @return The OID representing the integer value. * @exception SnmpStatusException There is no integer value * available at the start position. */ public static SnmpOid toOid(long[] index, int start) throws SnmpStatusException { try { return new SnmpOid(index[start]) ; } catch(IndexOutOfBoundsException e) { throw new SnmpStatusException(SnmpStatusException.noSuchName) ; } } /** * Scans an index OID, skips the integer value and returns the position * of the next value. * @param index The index array. * @param start The position in the index array. * @return The position of the next value. * @exception SnmpStatusException There is no integer value * available at the start position. */ public static int nextOid(long[] index, int start) throws SnmpStatusException { if (start >= index.length) { throw new SnmpStatusException(SnmpStatusException.noSuchName) ; } else { return start + 1 ; } } /** * Appends an <CODE>SnmpOid</CODE> representing an <CODE>SnmpInt</CODE> to another OID. * @param source An OID representing an <CODE>SnmpInt</CODE> value. * @param dest Where source should be appended. */ public static void appendToOid(SnmpOid source, SnmpOid dest) { if (source.getLength() != 1) { throw new IllegalArgumentException() ; } dest.append(source) ; } /** * Performs a clone action. This provides a workaround for the * <CODE>SnmpValue</CODE> interface. * @return The <CODE>SnmpValue</CODE> clone. */ final synchronized public SnmpValue duplicate() { return (SnmpValue) clone() ; } /** * Clones the <CODE>SnmpInt</CODE> object, making a copy of its data. * @return The object clone. */ final synchronized public Object clone() { SnmpInt newclone = null ; try { newclone = (SnmpInt) super.clone() ; newclone.value = value ; } catch (CloneNotSupportedException e) { throw new InternalError(e) ; // vm bug. } return newclone ; } /** * Returns a textual description of the type object. * @return ASN.1 textual description. */ public String getTypeName() { return name ; } /** * This method has been defined to allow the sub-classes * of SnmpInt to perform their own control at intialization time. */ boolean isInitValueValid(int v) { if ((v < Integer.MIN_VALUE) || (v > Integer.MAX_VALUE)) { return false; } return true; } /** * This method has been defined to allow the sub-classes * of SnmpInt to perform their own control at intialization time. */ boolean isInitValueValid(long v) { if ((v < Integer.MIN_VALUE) || (v > Integer.MAX_VALUE)) { return false; } return true; } // VARIABLES //---------- /** * Name of the type. */ final static String name = "Integer32" ; /** * This is where the value is stored. This long is signed. * @serial */ protected long value = 0 ; }
⏎ com/sun/jmx/snmp/SnmpInt.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, 254153👍, 3💬
Popular Posts:
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module. JDK 11 Naming module compiled cla...
kernel.jar is a component in iText Java library to provide low-level functionalities. iText Java lib...
What Is wstx-asl-3.2.8.jar? wstx-asl-3.2.8.jar is JAR file for the ASL component of Woodstox 3.2.8. ...
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...