• 大小: 32.7MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-07-05
  • 语言: Java
  • 标签: 源码  rt.ja  

资源简介

java1.7最全源代码,包括rt.jar windows平台的源代码,源码

资源截图

代码片段和文件信息

/*
 * Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only as
 * published by the Free Software Foundation.  Oracle designates this
 * particular file as subject to the “Classpath“ exception as provided
 * by Oracle in the LICENSE file that accompanied this code.
 *
 * This code is distributed in the hope that it will be useful but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not write to the Free Software Foundation
 * Inc. 51 Franklin St Fifth Floor Boston MA 02110-1301 USA.
 *
 * Please contact Oracle 500 Oracle Parkway Redwood Shores CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */

package com.oracle.net;

import java.net.Socket;
import java.net.ServerSocket;
import java.net.SocketImpl;
import java.net.SocketImplFactory;
import java.net.SocketException;
import java.nio.channels.SocketChannel;
import java.nio.channels.ServerSocketChannel;
import java.io.IOException;
import java.io.FileDescriptor;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.lang.reflect.Constructor;
import java.lang.reflect.Accessibleobject;
import java.lang.reflect.InvocationTargetException;

import sun.net.sdp.SdpSupport;

/**
 * This class consists exclusively of static methods that Sockets or Channels to
 * sockets that support the InfiniBand Sockets Direct Protocol (SDP).
 */

public final class Sdp {
    private Sdp() { }

    /**
     * The package-privage ServerSocket(SocketImpl) constructor
     */
    private static final Constructor serverSocketCtor;
    static {
        try {
            serverSocketCtor = (Constructor
                ServerSocket.class.getDeclaredConstructor(SocketImpl.class);
            setAccessible(serverSocketCtor);
        } catch (NoSuchMethodException e) {
            throw new Assertionerror(e);
        }
    }

    /**
     * The package-private SdpSocketImpl() constructor
     */
    private static final Constructor socketImplCtor;
    static {
        try {
            Class cl = Class.forName(“java.net.SdpSocketImpl“ true null);
            socketImplCtor = (Constructor)cl.getDeclaredConstructor();
            setAccessible(socketImplCtor);
        } catch (ClassNotFoundException e) {
            throw new Assertionerror(e);
        } catch (NoSuchMethodException e) {
            throw new Assertionerror(e);
        }
    }

    p

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-05-19 22:30  com\
     目录           0  2018-05-19 22:30  com\oracle\
     目录           0  2018-05-19 22:30  com\oracle\net\
     文件        6940  2011-06-28 04:21  com\oracle\net\Sdp.java
     目录           0  2018-05-19 22:30  com\sun\
     目录           0  2018-05-19 22:30  com\sun\accessibility\
     目录           0  2018-05-19 22:30  com\sun\accessibility\internal\
     目录           0  2018-05-19 22:30  com\sun\accessibility\internal\resources\
     文件        2713  2011-06-28 04:21  com\sun\accessibility\internal\resources\accessibility.properties
     文件        3013  2011-06-28 04:21  com\sun\accessibility\internal\resources\accessibility_de.properties
     文件        2660  2011-06-28 04:21  com\sun\accessibility\internal\resources\accessibility_en.properties
     文件        3132  2011-06-28 04:21  com\sun\accessibility\internal\resources\accessibility_es.properties
     文件        3312  2011-06-28 04:21  com\sun\accessibility\internal\resources\accessibility_fr.properties
     文件        3119  2011-06-28 04:21  com\sun\accessibility\internal\resources\accessibility_it.properties
     文件        4532  2011-06-28 04:21  com\sun\accessibility\internal\resources\accessibility_ja.properties
     文件        4035  2011-06-28 04:21  com\sun\accessibility\internal\resources\accessibility_ko.properties
     文件        3240  2011-06-28 04:21  com\sun\accessibility\internal\resources\accessibility_pt_BR.properties
     文件        2920  2011-06-28 04:21  com\sun\accessibility\internal\resources\accessibility_sv.properties
     文件        3501  2011-06-28 04:21  com\sun\accessibility\internal\resources\accessibility_zh_CN.properties
     文件        3733  2011-06-28 04:21  com\sun\accessibility\internal\resources\accessibility_zh_TW.properties
     目录           0  2018-05-19 22:30  com\sun\awt\
     文件       19871  2011-06-28 04:21  com\sun\awt\AWTUtilities.java
     文件        7653  2011-06-28 04:21  com\sun\awt\SecurityWarning.java
     目录           0  2018-05-19 22:30  com\sun\beans\
     目录           0  2018-05-19 22:30  com\sun\beans\decoder\
     文件        3598  2011-06-28 04:21  com\sun\beans\decoder\AccessorElementHandler.java
     文件        4598  2011-06-28 04:21  com\sun\beans\decoder\ArrayElementHandler.java
     文件        2696  2011-06-28 04:21  com\sun\beans\decoder\BooleanElementHandler.java
     文件        2390  2011-06-28 04:21  com\sun\beans\decoder\ByteElementHandler.java
     文件        3338  2011-06-28 04:21  com\sun\beans\decoder\CharElementHandler.java
     文件        2381  2011-06-28 04:21  com\sun\beans\decoder\ClassElementHandler.java
............此处省略13370个文件信息

评论

共有 条评论