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/io/OutputStreamHook.java
/* * Copyright (c) 1999, 2015, 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.io; import java.io.IOException; import java.io.NotActiveException; import java.io.OutputStream; import java.io.ObjectOutputStream; import java.io.ObjectOutput; import java.util.Map; import java.util.HashMap; import org.omg.CORBA.INTERNAL; public abstract class OutputStreamHook extends ObjectOutputStream { private HookPutFields putFields = null; /** * Since ObjectOutputStream.PutField methods specify no exceptions, * we are not checking for null parameters on put methods. */ private class HookPutFields extends ObjectOutputStream.PutField { private Map<String,Object> fields = new HashMap<>(); /** * Put the value of the named boolean field into the persistent field. */ public void put(String name, boolean value){ fields.put(name, new Boolean(value)); } /** * Put the value of the named char field into the persistent fields. */ public void put(String name, char value){ fields.put(name, new Character(value)); } /** * Put the value of the named byte field into the persistent fields. */ public void put(String name, byte value){ fields.put(name, new Byte(value)); } /** * Put the value of the named short field into the persistent fields. */ public void put(String name, short value){ fields.put(name, new Short(value)); } /** * Put the value of the named int field into the persistent fields. */ public void put(String name, int value){ fields.put(name, new Integer(value)); } /** * Put the value of the named long field into the persistent fields. */ public void put(String name, long value){ fields.put(name, new Long(value)); } /** * Put the value of the named float field into the persistent fields. * */ public void put(String name, float value){ fields.put(name, new Float(value)); } /** * Put the value of the named double field into the persistent field. */ public void put(String name, double value){ fields.put(name, new Double(value)); } /** * Put the value of the named Object field into the persistent field. */ public void put(String name, Object value){ fields.put(name, value); } /** * Write the data and fields to the specified ObjectOutput stream. */ public void write(ObjectOutput out) throws IOException { OutputStreamHook hook = (OutputStreamHook)out; ObjectStreamField[] osfields = hook.getFieldsNoCopy(); // Write the fields to the stream in the order // provided by the ObjectStreamClass. (They should // be sorted appropriately already.) for (int i = 0; i < osfields.length; i++) { Object value = fields.get(osfields[i].getName()); hook.writeField(osfields[i], value); } } } abstract void writeField(ObjectStreamField field, Object value) throws IOException; public OutputStreamHook() throws java.io.IOException { super(); } public void defaultWriteObject() throws IOException { writeObjectState.defaultWriteObject(this); defaultWriteObjectDelegate(); } public abstract void defaultWriteObjectDelegate(); public ObjectOutputStream.PutField putFields() throws IOException { if (putFields == null) { putFields = new HookPutFields(); } return putFields; } // Stream format version, saved/restored during recursive calls protected byte streamFormatVersion = 1; // Return the stream format version currently being used // to serialize an object public byte getStreamFormatVersion() { return streamFormatVersion; } abstract ObjectStreamField[] getFieldsNoCopy(); // User uses PutFields to simulate default data. // See java.io.ObjectOutputStream.PutFields public void writeFields() throws IOException { writeObjectState.defaultWriteObject(this); if (putFields != null) { putFields.write(this); } else { throw new NotActiveException("no current PutField object"); } } abstract org.omg.CORBA_2_3.portable.OutputStream getOrbStream(); protected abstract void beginOptionalCustomData(); // The following is a State pattern implementation of what // should be done when a Serializable has a // writeObject method. This was especially necessary for // RMI-IIOP stream format version 2. Please see the // state diagrams in the docs directory of the workspace. protected WriteObjectState writeObjectState = NOT_IN_WRITE_OBJECT; protected void setState(WriteObjectState newState) { writeObjectState = newState; } // Description of possible actions protected static class WriteObjectState { public void enterWriteObject(OutputStreamHook stream) throws IOException {} public void exitWriteObject(OutputStreamHook stream) throws IOException {} public void defaultWriteObject(OutputStreamHook stream) throws IOException {} public void writeData(OutputStreamHook stream) throws IOException {} } protected static class DefaultState extends WriteObjectState { public void enterWriteObject(OutputStreamHook stream) throws IOException { stream.setState(IN_WRITE_OBJECT); } } protected static final WriteObjectState NOT_IN_WRITE_OBJECT = new DefaultState(); protected static final WriteObjectState IN_WRITE_OBJECT = new InWriteObjectState(); protected static final WriteObjectState WROTE_DEFAULT_DATA = new WroteDefaultDataState(); protected static final WriteObjectState WROTE_CUSTOM_DATA = new WroteCustomDataState(); protected static class InWriteObjectState extends WriteObjectState { public void enterWriteObject(OutputStreamHook stream) throws IOException { // XXX I18N, logging needed. throw new IOException("Internal state failure: Entered writeObject twice"); } public void exitWriteObject(OutputStreamHook stream) throws IOException { // We didn't write any data, so write the // called defaultWriteObject indicator as false stream.getOrbStream().write_boolean(false); // If we're in stream format verison 2, we must // put the "null" marker to say that there isn't // any optional data if (stream.getStreamFormatVersion() == 2) stream.getOrbStream().write_long(0); stream.setState(NOT_IN_WRITE_OBJECT); } public void defaultWriteObject(OutputStreamHook stream) throws IOException { // The writeObject method called defaultWriteObject // or writeFields, so put the called defaultWriteObject // indicator as true stream.getOrbStream().write_boolean(true); stream.setState(WROTE_DEFAULT_DATA); } public void writeData(OutputStreamHook stream) throws IOException { // The writeObject method first called a direct // write operation. Write the called defaultWriteObject // indicator as false, put the special stream format // version 2 header (if stream format version 2, of course), // and write the data stream.getOrbStream().write_boolean(false); stream.beginOptionalCustomData(); stream.setState(WROTE_CUSTOM_DATA); } } protected static class WroteDefaultDataState extends InWriteObjectState { public void exitWriteObject(OutputStreamHook stream) throws IOException { // We only wrote default data, so if in stream format // version 2, put the null indicator to say that there // is no optional data if (stream.getStreamFormatVersion() == 2) stream.getOrbStream().write_long(0); stream.setState(NOT_IN_WRITE_OBJECT); } public void defaultWriteObject(OutputStreamHook stream) throws IOException { // XXX I18N, logging needed. throw new IOException("Called defaultWriteObject/writeFields twice"); } public void writeData(OutputStreamHook stream) throws IOException { // The writeObject method called a direct write operation. // If in stream format version 2, put the fake valuetype // header. stream.beginOptionalCustomData(); stream.setState(WROTE_CUSTOM_DATA); } } protected static class WroteCustomDataState extends InWriteObjectState { public void exitWriteObject(OutputStreamHook stream) throws IOException { // In stream format version 2, we must tell the ORB // stream to close the fake custom valuetype. if (stream.getStreamFormatVersion() == 2) ((org.omg.CORBA.portable.ValueOutputStream)stream.getOrbStream()).end_value(); stream.setState(NOT_IN_WRITE_OBJECT); } public void defaultWriteObject(OutputStreamHook stream) throws IOException { // XXX I18N, logging needed. throw new IOException("Cannot call defaultWriteObject/writeFields after writing custom data in RMI-IIOP"); } // We don't have to do anything special here, just let // the stream write the data. public void writeData(OutputStreamHook stream) throws IOException {} } }
⏎ com/sun/corba/se/impl/io/OutputStreamHook.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, 236554👍, 3💬
Popular Posts:
How to perform XML Schema validation with dom\Writer.java provided in the Apache Xerces package? You...
How to download and install JDK (Java Development Kit) 7? If you want to write Java applications, yo...
What Is poi-5.2.3.jar? poi-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which provides an...
The Java Naming and Directory Interface (JNDI) is part of the Java platform, providing applications ...
JDK 11 jdk.charsets.jmod is the JMOD file for JDK 11 Charsets module. JDK 11 Charsets module compile...