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/encoding/TypeCodeInputStream.java
/* * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.corba.se.impl.encoding; import java.util.HashMap; import java.util.Map; import java.util.Iterator; import java.util.List; import java.util.Collections; import java.util.ArrayList; import java.io.IOException; import java.io.PrintStream; import java.io.ByteArrayOutputStream; import java.math.BigDecimal; import java.math.BigInteger; import java.nio.ByteBuffer; import org.omg.CORBA.TypeCode ; import org.omg.CORBA.StructMember ; import org.omg.CORBA.UnionMember ; import org.omg.CORBA.ValueMember ; import org.omg.CORBA.TCKind ; import org.omg.CORBA.Any ; import org.omg.CORBA.Principal ; import org.omg.CORBA.BAD_TYPECODE ; import org.omg.CORBA.BAD_PARAM ; import org.omg.CORBA.BAD_OPERATION ; import org.omg.CORBA.INTERNAL ; import org.omg.CORBA.MARSHAL ; import org.omg.CORBA.TypeCodePackage.BadKind ; import org.omg.CORBA_2_3.portable.InputStream; import org.omg.CORBA_2_3.portable.OutputStream; import com.sun.corba.se.spi.ior.iiop.GIOPVersion; import com.sun.corba.se.impl.corba.TypeCodeImpl; import com.sun.corba.se.spi.orb.ORB; import com.sun.corba.se.impl.encoding.CodeSetConversion; import com.sun.corba.se.impl.encoding.CDRInputStream; import com.sun.corba.se.impl.encoding.CDROutputStream; import com.sun.corba.se.impl.encoding.MarshalInputStream; import sun.corba.EncapsInputStreamFactory; public class TypeCodeInputStream extends EncapsInputStream implements TypeCodeReader { private Map typeMap = null; private InputStream enclosure = null; private boolean isEncapsulation = false; public TypeCodeInputStream(org.omg.CORBA.ORB orb, byte[] data, int size) { super(orb, data, size); } public TypeCodeInputStream(org.omg.CORBA.ORB orb, byte[] data, int size, boolean littleEndian, GIOPVersion version) { super(orb, data, size, littleEndian, version); } public TypeCodeInputStream(org.omg.CORBA.ORB orb, ByteBuffer byteBuffer, int size, boolean littleEndian, GIOPVersion version) { super(orb, byteBuffer, size, littleEndian, version); } public void addTypeCodeAtPosition(TypeCodeImpl tc, int position) { if (typeMap == null) { //if (TypeCodeImpl.debug) System.out.println("Creating typeMap"); typeMap = new HashMap(16); } //if (TypeCodeImpl.debug) System.out.println(this + " adding tc " + tc + " at position " + position); typeMap.put(new Integer(position), tc); } public TypeCodeImpl getTypeCodeAtPosition(int position) { if (typeMap == null) return null; //if (TypeCodeImpl.debug) { //System.out.println("Getting tc " + (TypeCode)typeMap.get(new Integer(position)) + //" at position " + position); //} return (TypeCodeImpl)typeMap.get(new Integer(position)); } public void setEnclosingInputStream(InputStream enclosure) { this.enclosure = enclosure; } public TypeCodeReader getTopLevelStream() { if (enclosure == null) return this; if (enclosure instanceof TypeCodeReader) return ((TypeCodeReader)enclosure).getTopLevelStream(); return this; } public int getTopLevelPosition() { if (enclosure != null && enclosure instanceof TypeCodeReader) { // The enclosed stream has to consider if the enclosing stream // had to read the enclosed stream completely when creating it. // This is why the size of the enclosed stream needs to be substracted. int topPos = ((TypeCodeReader)enclosure).getTopLevelPosition(); // Substract getBufferLength from the parents pos because it read this stream // from its own when creating it int pos = topPos - getBufferLength() + getPosition(); //if (TypeCodeImpl.debug) { //System.out.println("TypeCodeInputStream.getTopLevelPosition using getTopLevelPosition " + topPos + //(isEncapsulation ? " - encaps length 4" : "") + //" - getBufferLength() " + getBufferLength() + //" + getPosition() " + getPosition() + " = " + pos); //} return pos; } //if (TypeCodeImpl.debug) { //System.out.println("TypeCodeInputStream.getTopLevelPosition returning getPosition() = " + //getPosition() + " because enclosure is " + enclosure); //} return getPosition(); } public static TypeCodeInputStream readEncapsulation(InputStream is, org.omg.CORBA.ORB _orb) { // _REVISIT_ Would be nice if we didn't have to copy the buffer! TypeCodeInputStream encap; int encapLength = is.read_long(); // read off part of the buffer corresponding to the encapsulation byte[] encapBuffer = new byte[encapLength]; is.read_octet_array(encapBuffer, 0, encapBuffer.length); // create an encapsulation using the marshal buffer if (is instanceof CDRInputStream) { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length, ((CDRInputStream) is).isLittleEndian(), ((CDRInputStream) is).getGIOPVersion()); } else { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length); } encap.setEnclosingInputStream(is); encap.makeEncapsulation(); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + encap + " with parent " + is); //encap.printBuffer(); //} return encap; } protected void makeEncapsulation() { // first entry in an encapsulation is the endianess consumeEndian(); isEncapsulation = true; } public void printTypeMap() { System.out.println("typeMap = {"); Iterator i = typeMap.keySet().iterator(); while (i.hasNext()) { Integer pos = (Integer)i.next(); TypeCodeImpl tci = (TypeCodeImpl)typeMap.get(pos); System.out.println(" key = " + pos.intValue() + ", value = " + tci.description()); } System.out.println("}"); } }
⏎ com/sun/corba/se/impl/encoding/TypeCodeInputStream.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, 251744👍, 3💬
Popular Posts:
XStream is a simple library to serialize objects to XML and back again. JAR File Size and Download L...
JDK 11 java.security.jgss.jmod is the JMOD file for JDK 11 Security JGSS (Java Generic Security Serv...
commons-net-1.4.1.jar is the JAR file for Apache Commons Net 1.4.1, which implements the client side...
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers. Both...
JDK 11 java.security.jgss.jmod is the JMOD file for JDK 11 Security JGSS (Java Generic Security Serv...