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:
JDK 11 java.base.jmod - Base Module
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module.
JDK 11 Base module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.base.jmod.
JDK 11 Base module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Base module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: 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.util.Properties; import sun.security.action.GetPropertyAction; /** * 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 static final Class<?> prefixImplClass; /* java.net.preferIPv4Stack */ private static final boolean preferIPv4Stack; /* True if exclusive binding is on for Windows */ private static final boolean exclusiveBind; static { Class<?> prefixImplClassLocal = null; Properties props = GetPropertyAction.privilegedGetProperties(); preferIPv4Stack = Boolean.parseBoolean( props.getProperty("java.net.preferIPv4Stack")); String exclBindProp = props.getProperty("sun.net.useExclusiveBind", ""); exclusiveBind = (exclBindProp.isEmpty()) ? true : Boolean.parseBoolean(exclBindProp); // impl.prefix String prefix = null; try { prefix = props.getProperty("impl.prefix"); 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; } /** * 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 { @SuppressWarnings("deprecation") Object result = prefixImplClass.newInstance(); return (DatagramSocketImpl) result; } catch (Exception e) { throw new SocketException("can't instantiate DatagramSocketImpl"); } } else { if (!preferIPv4Stack && !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: java.base-11.0.1-src.zip File size: 8740354 bytes Release date: 2018-11-04 Download
2020-05-29, 242126👍, 0💬
Popular Posts:
Joda-Time provides a quality replacement for the Java date and time classes. The design allows for m...
JDK 11 jdk.javadoc.jmod is the JMOD file for JDK 11 Java Document tool, which can be invoked by the ...
commons-io-2.6-sources.j aris the source JAR file for Apache Commons IO 2.6, which is a library of u...
commons-lang-2.6.jar is the JAR file for Apache Commons Lang 2.6, which provides a host of helper ut...
Rhino JavaScript Java Library is an open-source implementation of JavaScript written entirely in Jav...