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 - com.* 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 com.* package in JRE 1.8.0_191 rt.jar. Java source codes are also provided.
✍: FYIcenter
⏎ com/sun/jmx/snmp/IPAcl/PrincipalImpl.java
/* * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.jmx.snmp.IPAcl; import java.net.InetAddress; import java.net.UnknownHostException; import java.io.Serializable; /** * Principal represents a host. * */ class PrincipalImpl implements java.security.Principal, Serializable { private static final long serialVersionUID = -7910027842878976761L; private InetAddress[] add = null; /** * Constructs a principal with the local host. */ public PrincipalImpl () throws UnknownHostException { add = new InetAddress[1]; add[0] = java.net.InetAddress.getLocalHost(); } /** * Construct a principal using the specified host. * <P> * The host can be either: * <UL> * <LI> a host name * <LI> an IP address * </UL> * * @param hostName the host used to make the principal. */ public PrincipalImpl(String hostName) throws UnknownHostException { if ((hostName.equals("localhost")) || (hostName.equals("127.0.0.1"))) { add = new InetAddress[1]; add[0] = java.net.InetAddress.getByName(hostName); } else add = java.net.InetAddress.getAllByName( hostName ); } /** * Constructs a principal using an Internet Protocol (IP) address. * * @param address the Internet Protocol (IP) address. */ public PrincipalImpl(InetAddress address) { add = new InetAddress[1]; add[0] = address; } /** * Returns the name of this principal. * * @return the name of this principal. */ public String getName() { return add[0].toString(); } /** * Compares this principal to the specified object. Returns true if the * object passed in matches the principal * represented by the implementation of this interface. * * @param a the principal to compare with. * @return true if the principal passed in is the same as that encapsulated by this principal, false otherwise. */ public boolean equals(Object a) { if (a instanceof PrincipalImpl){ for(int i = 0; i < add.length; i++) { if(add[i].equals (((PrincipalImpl) a).getAddress())) return true; } return false; } else { return false; } } /** * Returns a hashcode for this principal. * * @return a hashcode for this principal. */ public int hashCode(){ return add[0].hashCode(); } /** * Returns a string representation of this principal. In case of multiple address, the first one is returned. * * @return a string representation of this principal. */ public String toString() { return ("PrincipalImpl :"+add[0].toString()); } /** * Returns the Internet Protocol (IP) address for this principal. In case of multiple address, the first one is returned. * * @return the Internet Protocol (IP) address for this principal. */ public InetAddress getAddress(){ return add[0]; } /** * Returns the Internet Protocol (IP) address for this principal. In case of multiple address, the first one is returned. * * @return the array of Internet Protocol (IP) addresses for this principal. */ public InetAddress[] getAddresses(){ return add; } }
⏎ com/sun/jmx/snmp/IPAcl/PrincipalImpl.java
Or download all of them as a single archive file:
File name: jre-rt-com-1.8.0_191-src.zip File size: 8099783 bytes Release date: 2018-10-28 Download
⇒ Backup JDK 8 Installation Directory
2023-02-07, 251814👍, 3💬
Popular Posts:
How to download and install JDK (Java Development Kit) 7? If you want to write Java applications, yo...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
JDK 17 jdk.compiler.jmod is the JMOD file for JDK 17 Compiler tool, which can be invoked by the "jav...
The JMX technology provides the tools for building distributed, Web-based, modular and dynamic solut...
JDK 11 java.rmi.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) module. JDK 11 RMI m...