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 - java.* 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 java.* package in JRE 1.8.0_191 rt.jar. Java source codes are also provided.
✍: FYIcenter
⏎ java/net/DefaultDatagramSocketImplFactory.java
/* * Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.net; import java.security.AccessController; import java.security.PrivilegedAction; /** * This class defines a factory for creating DatagramSocketImpls. It defaults * to creating plain DatagramSocketImpls, but may create other DatagramSocketImpls * by setting the impl.prefix system property. * * For Windows versions lower than Windows Vista a TwoStacksPlainDatagramSocketImpl * is always created. This impl supports IPv6 on these platform where available. * * On Windows platforms greater than Vista that support a dual layer TCP/IP stack * a DualStackPlainDatagramSocketImpl is created for DatagramSockets. For MulticastSockets * a TwoStacksPlainDatagramSocketImpl is always created. This is to overcome the lack * of behavior defined for multicasting over a dual layer socket by the RFC. * * @author Chris Hegarty */ class DefaultDatagramSocketImplFactory { private final static Class<?> prefixImplClass; /* the windows version. */ private static float version; /* java.net.preferIPv4Stack */ private static boolean preferIPv4Stack = false; /* If the version supports a dual stack TCP implementation */ private final static boolean useDualStackImpl; /* sun.net.useExclusiveBind */ private static String exclBindProp; /* True if exclusive binding is on for Windows */ private final static boolean exclusiveBind; static { Class<?> prefixImplClassLocal = null; boolean useDualStackImplLocal = false; boolean exclusiveBindLocal = true; // Determine Windows Version. java.security.AccessController.doPrivileged( new PrivilegedAction<Object>() { public Object run() { version = 0; try { version = Float.parseFloat(System.getProperties() .getProperty("os.version")); preferIPv4Stack = Boolean.parseBoolean( System.getProperties() .getProperty( "java.net.preferIPv4Stack")); exclBindProp = System.getProperty( "sun.net.useExclusiveBind"); } catch (NumberFormatException e) { assert false : e; } return null; // nothing to return } }); // (version >= 6.0) implies Vista or greater. if (version >= 6.0 && !preferIPv4Stack) { useDualStackImplLocal = true; } if (exclBindProp != null) { // sun.net.useExclusiveBind is true exclusiveBindLocal = exclBindProp.length() == 0 ? true : Boolean.parseBoolean(exclBindProp); } else if (version < 6.0) { exclusiveBindLocal = false; } // impl.prefix String prefix = null; try { prefix = AccessController.doPrivileged( new sun.security.action.GetPropertyAction("impl.prefix", null)); if (prefix != null) prefixImplClassLocal = Class.forName("java.net."+prefix+"DatagramSocketImpl"); } catch (Exception e) { System.err.println("Can't find class: java.net." + prefix + "DatagramSocketImpl: check impl.prefix property"); } prefixImplClass = prefixImplClassLocal; useDualStackImpl = useDualStackImplLocal; exclusiveBind = exclusiveBindLocal; } /** * Creates a new <code>DatagramSocketImpl</code> instance. * * @param isMulticast true if this impl is to be used for a MutlicastSocket * @return a new instance of <code>PlainDatagramSocketImpl</code>. */ static DatagramSocketImpl createDatagramSocketImpl(boolean isMulticast) throws SocketException { if (prefixImplClass != null) { try { return (DatagramSocketImpl) prefixImplClass.newInstance(); } catch (Exception e) { throw new SocketException("can't instantiate DatagramSocketImpl"); } } else { if (useDualStackImpl && !isMulticast) return new DualStackPlainDatagramSocketImpl(exclusiveBind); else return new TwoStacksPlainDatagramSocketImpl(exclusiveBind && !isMulticast); } } }
⏎ java/net/DefaultDatagramSocketImplFactory.java
Or download all of them as a single archive file:
File name: jre-rt-java-1.8.0_191-src.zip File size: 6664831 bytes Release date: 2018-10-28 Download
⇒ JRE 8 rt.jar - javax.* Package Source Code
2023-08-23, 246008👍, 4💬
Popular Posts:
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
What is the sax\Writer.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 insta...