JDK 17 java.base.jmod - Base Module

JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module.

JDK 17 Base module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.base.jmod.

JDK 17 Base module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.

JDK 17 Base module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.base.

You can click and view the content of each source code file in the list below.

✍: FYIcenter

java/net/DelegatingSocketImpl.java

/*
 * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */
package java.net;

import java.io.FileDescriptor;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Objects;
import java.util.Set;

import sun.net.PlatformSocketImpl;

/**
 * A SocketImpl that delegates all methods to another SocketImpl.
 */

class DelegatingSocketImpl extends SocketImpl {
    protected final SocketImpl delegate;

    DelegatingSocketImpl(SocketImpl delegate) {
        assert delegate instanceof PlatformSocketImpl;
        this.delegate = Objects.requireNonNull(delegate);
    }

    final SocketImpl delegate() {
        return delegate;
    }

    @Override
    protected FileDescriptor getFileDescriptor() {
        return delegate.getFileDescriptor();
    }

    @Override
    protected InetAddress getInetAddress() {
        return delegate.getInetAddress();
    }

    @Override
    protected int getPort() {
        return delegate.getPort();
    }

    @Override
    protected int getLocalPort() {
        return delegate.getLocalPort();
    }

    @Override
    protected void create(boolean stream) throws IOException {
        delegate.create(stream);
    }

    @Override
    protected void connect(String host, int port) throws IOException {
        delegate.connect(host, port);
    }

    @Override
    protected void connect(InetAddress address, int port) throws IOException {
        delegate.connect(address, port);
    }

    @Override
    protected void connect(SocketAddress address, int timeout) throws IOException {
        delegate.connect(address, timeout);
    }

    @Override
    protected void bind(InetAddress host, int port) throws IOException {
        delegate.bind(host, port);
    }

    @Override
    protected void listen(int backlog) throws IOException {
        delegate.listen(backlog);
    }

    @Override
    protected void accept(SocketImpl s) throws IOException {
        delegate.accept(s);
    }

    @Override
    protected InputStream getInputStream() throws IOException {
        return delegate.getInputStream();
    }

    @Override
    protected OutputStream getOutputStream() throws IOException {
        return delegate.getOutputStream();
    }

    @Override
    protected int available() throws IOException {
        return delegate.available();
    }

    @Override
    protected void close() throws IOException {
        delegate.close();
    }

    @Override
    protected boolean supportsUrgentData() {
        return delegate.supportsUrgentData();
    }

    @Override
    protected void sendUrgentData(int data) throws IOException {
        delegate.sendUrgentData(data);
    }

    @Override
    protected Set<SocketOption<?>> supportedOptions() {
        return delegate.supportedOptions();
    }

    @Override
    protected <T> void setOption(SocketOption<T> opt, T value) throws IOException {
        delegate.setOption(opt, value);
    }

    @Override
    protected <T> T getOption(SocketOption<T> opt) throws IOException {
        return delegate.getOption(opt);
    }

    @Override
    public void setOption(int optID, Object value) throws SocketException {
        delegate.setOption(optID, value);
    }

    @Override
    public Object getOption(int optID) throws SocketException {
        return delegate.getOption(optID);
    }

    @Override
    protected void shutdownInput() throws IOException {
        delegate.shutdownInput();
    }

    @Override
    protected void shutdownOutput() throws IOException {
        delegate.shutdownOutput();
    }
}

java/net/DelegatingSocketImpl.java

 

Or download all of them as a single archive file:

File name: java.base-17.0.5-src.zip
File size: 8883851 bytes
Release date: 2022-09-13
Download 

 

JDK 17 java.compiler.jmod - Compiler Module

JDK 17 Modules List

JDK 17 JMod/Module Files

⇑⇑ FAQ for JDK (Java Development Kit) 17

2023-09-26, 44418👍, 1💬