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/ior/IORImpl.java
/* * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.corba.se.impl.ior; import java.util.ListIterator ; import java.util.Iterator ; import java.util.Map ; import java.util.HashMap ; import java.io.StringWriter; import java.io.IOException; import javax.rmi.CORBA.Util; import org.omg.CORBA_2_3.portable.InputStream ; import org.omg.CORBA_2_3.portable.OutputStream ; import org.omg.IOP.TAG_INTERNET_IOP ; import com.sun.corba.se.spi.ior.ObjectId ; import com.sun.corba.se.spi.ior.TaggedProfileTemplate ; import com.sun.corba.se.spi.ior.TaggedProfile ; import com.sun.corba.se.spi.ior.IOR ; import com.sun.corba.se.spi.ior.IORTemplate ; import com.sun.corba.se.spi.ior.IORTemplateList ; import com.sun.corba.se.spi.ior.IdentifiableFactoryFinder ; import com.sun.corba.se.spi.ior.IdentifiableContainerBase ; import com.sun.corba.se.spi.ior.ObjectKeyTemplate ; import com.sun.corba.se.spi.ior.IORFactories ; import com.sun.corba.se.spi.ior.iiop.GIOPVersion; import com.sun.corba.se.spi.protocol.RequestDispatcherRegistry; import com.sun.corba.se.spi.orb.ORB; import com.sun.corba.se.spi.logging.CORBALogDomains; import com.sun.corba.se.impl.encoding.MarshalOutputStream; import com.sun.corba.se.impl.encoding.EncapsOutputStream; import com.sun.corba.se.impl.orbutil.HexOutputStream; import com.sun.corba.se.impl.orbutil.ORBConstants; import com.sun.corba.se.impl.logging.IORSystemException ; // XXX remove this once getProfile is gone import com.sun.corba.se.spi.ior.iiop.IIOPProfile ; /** An IOR is represented as a list of profiles. * Only objects that extend TaggedProfile should be added to an IOR. * However, enforcing this restriction requires overriding all * of the addXXX methods inherited from List, so no check * is included here. * @author Ken Cavanaugh */ public class IORImpl extends IdentifiableContainerBase implements IOR { private String typeId; private ORB factory = null ; private boolean isCachedHashValue = false; private int cachedHashValue; IORSystemException wrapper ; public ORB getORB() { return factory ; } /* This variable is set directly from the constructors that take * an IORTemplate or IORTemplateList as arguments; otherwise it * is derived from the list of TaggedProfile instances on the first * call to getIORTemplates. Note that we assume that an IOR with * mutiple TaggedProfile instances has the same ObjectId in each * TaggedProfile, as otherwise the IOR could never be created through * an ObjectReferenceFactory. */ private IORTemplateList iortemps = null ; public boolean equals( Object obj ) { if (obj == null) return false ; if (!(obj instanceof IOR)) return false ; IOR other = (IOR)obj ; return super.equals( obj ) && typeId.equals( other.getTypeId() ) ; } public synchronized int hashCode() { if (! isCachedHashValue) { cachedHashValue = (super.hashCode() ^ typeId.hashCode()); isCachedHashValue = true; } return cachedHashValue; } /** Construct an empty IOR. This is needed for null object references. */ public IORImpl( ORB orb ) { this( orb, "" ) ; } public IORImpl( ORB orb, String typeid ) { factory = orb ; wrapper = IORSystemException.get( orb, CORBALogDomains.OA_IOR ) ; this.typeId = typeid ; } /** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this( orb, typeId ) ; this.iortemps = IORFactories.makeIORTemplateList() ; this.iortemps.add( iortemp ) ; addTaggedProfiles( iortemp, id ) ; makeImmutable() ; } private void addTaggedProfiles( IORTemplate iortemp, ObjectId id ) { ObjectKeyTemplate oktemp = iortemp.getObjectKeyTemplate() ; Iterator templateIterator = iortemp.iterator() ; while (templateIterator.hasNext()) { TaggedProfileTemplate ptemp = (TaggedProfileTemplate)(templateIterator.next()) ; TaggedProfile profile = ptemp.create( oktemp, id ) ; add( profile ) ; } } /** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplateList iortemps, ObjectId id) { this( orb, typeId ) ; this.iortemps = iortemps ; Iterator iter = iortemps.iterator() ; while (iter.hasNext()) { IORTemplate iortemp = (IORTemplate)(iter.next()) ; addTaggedProfiles( iortemp, id ) ; } makeImmutable() ; } public IORImpl(InputStream is) { this( (ORB)(is.orb()), is.read_string() ) ; IdentifiableFactoryFinder finder = factory.getTaggedProfileFactoryFinder() ; EncapsulationUtility.readIdentifiableSequence( this, finder, is ) ; makeImmutable() ; } public String getTypeId() { return typeId ; } public void write(OutputStream os) { os.write_string( typeId ) ; EncapsulationUtility.writeIdentifiableSequence( this, os ) ; } public String stringify() { StringWriter bs; MarshalOutputStream s = sun.corba.OutputStreamFactory.newEncapsOutputStream(factory); s.putEndian(); write( (OutputStream)s ); bs = new StringWriter(); try { s.writeTo(new HexOutputStream(bs)); } catch (IOException ex) { throw wrapper.stringifyWriteError( ex ) ; } return ORBConstants.STRINGIFY_PREFIX + bs; } public synchronized void makeImmutable() { makeElementsImmutable() ; if (iortemps != null) iortemps.makeImmutable() ; super.makeImmutable() ; } public org.omg.IOP.IOR getIOPIOR() { EncapsOutputStream os = sun.corba.OutputStreamFactory.newEncapsOutputStream(factory); write(os); InputStream is = (InputStream) (os.create_input_stream()); return org.omg.IOP.IORHelper.read(is); } public boolean isNil() { // // The check for typeId length of 0 below is commented out // as a workaround for a bug in ORBs which send a // null objref with a non-empty typeId string. // return ((size() == 0) /* && (typeId.length() == 0) */); } public boolean isEquivalent(IOR ior) { Iterator myIterator = iterator() ; Iterator otherIterator = ior.iterator() ; while (myIterator.hasNext() && otherIterator.hasNext()) { TaggedProfile myProfile = (TaggedProfile)(myIterator.next()) ; TaggedProfile otherProfile = (TaggedProfile)(otherIterator.next()) ; if (!myProfile.isEquivalent( otherProfile )) return false ; } return myIterator.hasNext() == otherIterator.hasNext() ; } private void initializeIORTemplateList() { // Maps ObjectKeyTemplate to IORTemplate Map oktempToIORTemplate = new HashMap() ; iortemps = IORFactories.makeIORTemplateList() ; Iterator iter = iterator() ; ObjectId oid = null ; // used to check that all profiles have the same oid. while (iter.hasNext()) { TaggedProfile prof = (TaggedProfile)(iter.next()) ; TaggedProfileTemplate ptemp = prof.getTaggedProfileTemplate() ; ObjectKeyTemplate oktemp = prof.getObjectKeyTemplate() ; // Check that all oids for all profiles are the same: if they are not, // throw exception. if (oid == null) oid = prof.getObjectId() ; else if (!oid.equals( prof.getObjectId() )) throw wrapper.badOidInIorTemplateList() ; // Find or create the IORTemplate for oktemp. IORTemplate iortemp = (IORTemplate)(oktempToIORTemplate.get( oktemp )) ; if (iortemp == null) { iortemp = IORFactories.makeIORTemplate( oktemp ) ; oktempToIORTemplate.put( oktemp, iortemp ) ; iortemps.add( iortemp ) ; } iortemp.add( ptemp ) ; } iortemps.makeImmutable() ; } /** Return the IORTemplateList for this IOR. Will throw * exception if it is not possible to generate an IOR * from the IORTemplateList that is equal to this IOR, * which can only happen if not every TaggedProfile in the * IOR has the same ObjectId. */ public synchronized IORTemplateList getIORTemplates() { if (iortemps == null) initializeIORTemplateList() ; return iortemps ; } /** Return the first IIOPProfile in this IOR. * XXX THIS IS TEMPORARY FOR BACKWARDS COMPATIBILITY AND WILL BE REMOVED * SOON! */ public IIOPProfile getProfile() { IIOPProfile iop = null ; Iterator iter = iteratorById( TAG_INTERNET_IOP.value ) ; if (iter.hasNext()) iop = (IIOPProfile)(iter.next()) ; if (iop != null) return iop ; // if we come to this point then no IIOP Profile // is present. Therefore, throw an exception. throw wrapper.iorMustHaveIiopProfile() ; } }
⏎ com/sun/corba/se/impl/ior/IORImpl.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, 308480👍, 3💬
Popular Posts:
Commons Pool provides an Object-pooling API, with three major aspects: 1. A generic object pool inte...
maven-settings-builder-3 .8.6.jaris the JAR file for Apache Maven 3.8.6 Settings Builder module. Apa...
The JDT project provides the tool plug-ins that implement a Java IDE supporting the development of a...
How to run "javac" command from JDK tools.jar file? "javac" is the Java compiler command that allows...
Snappy-Java is a Java port of the "snappy", a fast C++ compresser/decompresser developed by Google. ...