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/PlainSocketImpl.java
/* * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.net; import java.io.*; import java.security.PrivilegedAction; /* * This class PlainSocketImpl simply delegates to the appropriate real * SocketImpl. We do this because PlainSocketImpl is already extended * by SocksSocketImpl. * <p> * There are two possibilities for the real SocketImpl, * TwoStacksPlainSocketImpl or DualStackPlainSocketImpl. We use * DualStackPlainSocketImpl on systems that have a dual stack * TCP implementation. Otherwise we create an instance of * TwoStacksPlainSocketImpl and delegate to it. * * @author Chris Hegarty */ class PlainSocketImpl extends AbstractPlainSocketImpl { private AbstractPlainSocketImpl impl; /* 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 static boolean useDualStackImpl = false; /* sun.net.useExclusiveBind */ private static String exclBindProp; /* True if exclusive binding is on for Windows */ private static boolean exclusiveBind = true; static { 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) { useDualStackImpl = true; } if (exclBindProp != null) { // sun.net.useExclusiveBind is true exclusiveBind = exclBindProp.length() == 0 ? true : Boolean.parseBoolean(exclBindProp); } else if (version < 6.0) { exclusiveBind = false; } } /** * Constructs an empty instance. */ PlainSocketImpl() { if (useDualStackImpl) { impl = new DualStackPlainSocketImpl(exclusiveBind); } else { impl = new TwoStacksPlainSocketImpl(exclusiveBind); } } /** * Constructs an instance with the given file descriptor. */ PlainSocketImpl(FileDescriptor fd) { if (useDualStackImpl) { impl = new DualStackPlainSocketImpl(fd, exclusiveBind); } else { impl = new TwoStacksPlainSocketImpl(fd, exclusiveBind); } } // Override methods in SocketImpl that access impl's fields. protected FileDescriptor getFileDescriptor() { return impl.getFileDescriptor(); } protected InetAddress getInetAddress() { return impl.getInetAddress(); } protected int getPort() { return impl.getPort(); } protected int getLocalPort() { return impl.getLocalPort(); } void setSocket(Socket soc) { impl.setSocket(soc); } Socket getSocket() { return impl.getSocket(); } void setServerSocket(ServerSocket soc) { impl.setServerSocket(soc); } ServerSocket getServerSocket() { return impl.getServerSocket(); } public String toString() { return impl.toString(); } // Override methods in AbstractPlainSocketImpl that access impl's fields. protected synchronized void create(boolean stream) throws IOException { impl.create(stream); // set fd to delegate's fd to be compatible with older releases this.fd = impl.fd; } protected void connect(String host, int port) throws UnknownHostException, IOException { impl.connect(host, port); } protected void connect(InetAddress address, int port) throws IOException { impl.connect(address, port); } protected void connect(SocketAddress address, int timeout) throws IOException { impl.connect(address, timeout); } public void setOption(int opt, Object val) throws SocketException { impl.setOption(opt, val); } public Object getOption(int opt) throws SocketException { return impl.getOption(opt); } synchronized void doConnect(InetAddress address, int port, int timeout) throws IOException { impl.doConnect(address, port, timeout); } protected synchronized void bind(InetAddress address, int lport) throws IOException { impl.bind(address, lport); } protected synchronized void accept(SocketImpl s) throws IOException { if (s instanceof PlainSocketImpl) { // pass in the real impl not the wrapper. SocketImpl delegate = ((PlainSocketImpl)s).impl; delegate.address = new InetAddress(); delegate.fd = new FileDescriptor(); impl.accept(delegate); // set fd to delegate's fd to be compatible with older releases s.fd = delegate.fd; } else { impl.accept(s); } } void setFileDescriptor(FileDescriptor fd) { impl.setFileDescriptor(fd); } void setAddress(InetAddress address) { impl.setAddress(address); } void setPort(int port) { impl.setPort(port); } void setLocalPort(int localPort) { impl.setLocalPort(localPort); } protected synchronized InputStream getInputStream() throws IOException { return impl.getInputStream(); } void setInputStream(SocketInputStream in) { impl.setInputStream(in); } protected synchronized OutputStream getOutputStream() throws IOException { return impl.getOutputStream(); } protected void close() throws IOException { try { impl.close(); } finally { // set fd to delegate's fd to be compatible with older releases this.fd = null; } } void reset() throws IOException { try { impl.reset(); } finally { // set fd to delegate's fd to be compatible with older releases this.fd = null; } } protected void shutdownInput() throws IOException { impl.shutdownInput(); } protected void shutdownOutput() throws IOException { impl.shutdownOutput(); } protected void sendUrgentData(int data) throws IOException { impl.sendUrgentData(data); } FileDescriptor acquireFD() { return impl.acquireFD(); } void releaseFD() { impl.releaseFD(); } public boolean isConnectionReset() { return impl.isConnectionReset(); } public boolean isConnectionResetPending() { return impl.isConnectionResetPending(); } public void setConnectionReset() { impl.setConnectionReset(); } public void setConnectionResetPending() { impl.setConnectionResetPending(); } public boolean isClosedOrPending() { return impl.isClosedOrPending(); } public int getTimeout() { return impl.getTimeout(); } // Override methods in AbstractPlainSocketImpl that need to be implemented. void socketCreate(boolean isServer) throws IOException { impl.socketCreate(isServer); } void socketConnect(InetAddress address, int port, int timeout) throws IOException { impl.socketConnect(address, port, timeout); } void socketBind(InetAddress address, int port) throws IOException { impl.socketBind(address, port); } void socketListen(int count) throws IOException { impl.socketListen(count); } void socketAccept(SocketImpl s) throws IOException { impl.socketAccept(s); } int socketAvailable() throws IOException { return impl.socketAvailable(); } void socketClose0(boolean useDeferredClose) throws IOException { impl.socketClose0(useDeferredClose); } void socketShutdown(int howto) throws IOException { impl.socketShutdown(howto); } void socketSetOption(int cmd, boolean on, Object value) throws SocketException { impl.socketSetOption(cmd, on, value); } int socketGetOption(int opt, Object iaContainerObj) throws SocketException { return impl.socketGetOption(opt, iaContainerObj); } void socketSendUrgentData(int data) throws IOException { impl.socketSendUrgentData(data); } }
⏎ java/net/PlainSocketImpl.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, 250474👍, 4💬
Popular Posts:
JDK 11 jdk.httpserver.jmod is the JMOD file for JDK 11 HTTP Server module. JDK 11 HTTP Server module...
JDK 11 jdk.internal.JVM Stat.jmod is the JMOD file for JDK 11 Internal Jvmstat module. JDK 11 Intern...
JDK 11 jdk.aot.jmod is the JMOD file for JDK 11 Ahead-of-Time (AOT) Compiler module. JDK 11 AOT Comp...
Saxon is an open source product available under the Mozilla Public License. It provides implementati...
A stream buffer is a stream-based representation of an XML infoset in Java. Stream buffers are desig...