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/corba/se/impl/oa/toa/TransientObjectManager.java
/* * Copyright (c) 1996, 2003, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ /* * Licensed Materials - Property of IBM * RMI-IIOP v1.0 * Copyright IBM Corp. 1998 1999 All Rights Reserved * */ package com.sun.corba.se.impl.oa.toa; import com.sun.corba.se.impl.orbutil.ORBUtility ; import com.sun.corba.se.spi.orb.ORB ; public final class TransientObjectManager { private ORB orb ; private int maxSize = 128; private Element[] elementArray; private Element freeList; void dprint( String msg ) { ORBUtility.dprint( this, msg ) ; } public TransientObjectManager( ORB orb ) { this.orb = orb ; elementArray = new Element[maxSize]; elementArray[maxSize-1] = new Element(maxSize-1,null); for ( int i=maxSize-2; i>=0; i-- ) elementArray[i] = new Element(i,elementArray[i+1]); freeList = elementArray[0]; } public synchronized byte[] storeServant(java.lang.Object servant, java.lang.Object servantData) { if ( freeList == null ) doubleSize(); Element elem = freeList; freeList = (Element)freeList.servant; byte[] result = elem.getKey(servant, servantData); if (orb.transientObjectManagerDebugFlag) dprint( "storeServant returns key for element " + elem ) ; return result ; } public synchronized java.lang.Object lookupServant(byte transientKey[]) { int index = ORBUtility.bytesToInt(transientKey,0); int counter = ORBUtility.bytesToInt(transientKey,4); if (orb.transientObjectManagerDebugFlag) dprint( "lookupServant called with index=" + index + ", counter=" + counter ) ; if (elementArray[index].counter == counter && elementArray[index].valid ) { if (orb.transientObjectManagerDebugFlag) dprint( "\tcounter is valid" ) ; return elementArray[index].servant; } // servant not found if (orb.transientObjectManagerDebugFlag) dprint( "\tcounter is invalid" ) ; return null; } public synchronized java.lang.Object lookupServantData(byte transientKey[]) { int index = ORBUtility.bytesToInt(transientKey,0); int counter = ORBUtility.bytesToInt(transientKey,4); if (orb.transientObjectManagerDebugFlag) dprint( "lookupServantData called with index=" + index + ", counter=" + counter ) ; if (elementArray[index].counter == counter && elementArray[index].valid ) { if (orb.transientObjectManagerDebugFlag) dprint( "\tcounter is valid" ) ; return elementArray[index].servantData; } // servant not found if (orb.transientObjectManagerDebugFlag) dprint( "\tcounter is invalid" ) ; return null; } public synchronized void deleteServant(byte transientKey[]) { int index = ORBUtility.bytesToInt(transientKey,0); if (orb.transientObjectManagerDebugFlag) dprint( "deleting servant at index=" + index ) ; elementArray[index].delete(freeList); freeList = elementArray[index]; } public synchronized byte[] getKey(java.lang.Object servant) { for ( int i=0; i<maxSize; i++ ) if ( elementArray[i].valid && elementArray[i].servant == servant ) return elementArray[i].toBytes(); // if we come here Object does not exist return null; } private void doubleSize() { // Assume caller is synchronized Element old[] = elementArray; int oldSize = maxSize; maxSize *= 2; elementArray = new Element[maxSize]; for ( int i=0; i<oldSize; i++ ) elementArray[i] = old[i]; elementArray[maxSize-1] = new Element(maxSize-1,null); for ( int i=maxSize-2; i>=oldSize; i-- ) elementArray[i] = new Element(i,elementArray[i+1]); freeList = elementArray[oldSize]; } } final class Element { java.lang.Object servant=null; // also stores "next pointer" in free list java.lang.Object servantData=null; int index=-1; int counter=0; boolean valid=false; // valid=true if this Element contains // a valid servant Element(int i, java.lang.Object next) { servant = next; index = i; } byte[] getKey(java.lang.Object servant, java.lang.Object servantData) { this.servant = servant; this.servantData = servantData; this.valid = true; return toBytes(); } byte[] toBytes() { // Convert the index+counter into an 8-byte (big-endian) key. byte key[] = new byte[8]; ORBUtility.intToBytes(index, key, 0); ORBUtility.intToBytes(counter, key, 4); return key; } void delete(Element freeList) { if ( !valid ) // prevent double deletion return; counter++; servantData = null; valid = false; // add this to freeList servant = freeList; } public String toString() { return "Element[" + index + ", " + counter + "]" ; } }
⏎ com/sun/corba/se/impl/oa/toa/TransientObjectManager.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, 309553👍, 3💬
Popular Posts:
What is the dom\GetElementsByTagName .javaprovided in the Apache Xerces package? I have Apache Xerce...
How to merge two JAR files with "jar" commands? I am tired of specifying multiple JAR files in the c...
JDK 11 jdk.httpserver.jmod is the JMOD file for JDK 11 HTTP Server module. JDK 11 HTTP Server module...
Apache Ant Source Code Files are inside the Apache Ant source package file like apache-ant-1.10.10-s...
What Is commons-codec-1.4.jar? commons-codec-1.4.jar is the JAR file for Apache Commons Codec 1.4, w...