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/nio/file/WatchKey.java
/* * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.nio.file; import java.util.List; /** * A token representing the registration of a {@link Watchable watchable} object * with a {@link WatchService}. * * <p> A watch key is created when a watchable object is registered with a watch * service. The key remains {@link #isValid valid} until: * <ol> * <li> It is cancelled, explicitly, by invoking its {@link #cancel cancel} * method, or</li> * <li> Cancelled implicitly, because the object is no longer accessible, * or </li> * <li> By {@link WatchService#close closing} the watch service. </li> * </ol> * * <p> A watch key has a state. When initially created the key is said to be * <em>ready</em>. When an event is detected then the key is <em>signalled</em> * and queued so that it can be retrieved by invoking the watch service's {@link * WatchService#poll() poll} or {@link WatchService#take() take} methods. Once * signalled, a key remains in this state until its {@link #reset reset} method * is invoked to return the key to the ready state. Events detected while the * key is in the signalled state are queued but do not cause the key to be * re-queued for retrieval from the watch service. Events are retrieved by * invoking the key's {@link #pollEvents pollEvents} method. This method * retrieves and removes all events accumulated for the object. When initially * created, a watch key has no pending events. Typically events are retrieved * when the key is in the signalled state leading to the following idiom: * * <pre> * for (;;) { * // retrieve key * WatchKey key = watcher.take(); * * // process events * for (WatchEvent<?> event: key.pollEvents()) { * : * } * * // reset the key * boolean valid = key.reset(); * if (!valid) { * // object no longer registered * } * } * </pre> * * <p> Watch keys are safe for use by multiple concurrent threads. Where there * are several threads retrieving signalled keys from a watch service then care * should be taken to ensure that the {@code reset} method is only invoked after * the events for the object have been processed. This ensures that one thread * is processing the events for an object at any time. * * @since 1.7 */ public interface WatchKey { /** * Tells whether or not this watch key is valid. * * <p> A watch key is valid upon creation and remains until it is cancelled, * or its watch service is closed. * * @return {@code true} if, and only if, this watch key is valid */ boolean isValid(); /** * Retrieves and removes all pending events for this watch key, returning * a {@code List} of the events that were retrieved. * * <p> Note that this method does not wait if there are no events pending. * * @return the list of the events retrieved; may be empty */ List<WatchEvent<?>> pollEvents(); /** * Resets this watch key. * * <p> If this watch key has been cancelled or this watch key is already in * the ready state then invoking this method has no effect. Otherwise * if there are pending events for the object then this watch key is * immediately re-queued to the watch service. If there are no pending * events then the watch key is put into the ready state and will remain in * that state until an event is detected or the watch key is cancelled. * * @return {@code true} if the watch key is valid and has been reset, and * {@code false} if the watch key could not be reset because it is * no longer {@link #isValid valid} */ boolean reset(); /** * Cancels the registration with the watch service. Upon return the watch key * will be invalid. If the watch key is enqueued, waiting to be retrieved * from the watch service, then it will remain in the queue until it is * removed. Pending events, if any, remain pending and may be retrieved by * invoking the {@link #pollEvents pollEvents} method after the key is * cancelled. * * <p> If this watch key has already been cancelled then invoking this * method has no effect. Once cancelled, a watch key remains forever invalid. */ void cancel(); /** * Returns the object for which this watch key was created. This method will * continue to return the object even after the key is cancelled. * * <p> As the {@code WatchService} is intended to map directly on to the * native file event notification facility (where available) then many of * details on how registered objects are watched is highly implementation * specific. When watching a directory for changes for example, and the * directory is moved or renamed in the file system, there is no guarantee * that the watch key will be cancelled and so the object returned by this * method may no longer be a valid path to the directory. * * @return the object for which this watch key was created */ Watchable watchable(); }
⏎ java/nio/file/WatchKey.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, 249136👍, 4💬
Popular Posts:
Old version of xml-apis.jar. JAR File Size and Download Location: File name: xmlParserAPIs.jar File ...
JDK 17 jdk.compiler.jmod is the JMOD file for JDK 17 Compiler tool, which can be invoked by the "jav...
What Is HttpComponents httpcore-4.4.6.jar? HttpComponents httpcore-4.4.6.jar is the JAR file for Apa...
What Is poi-ooxml-3.5.jar? poi-ooxml-3.5.jar is one of the JAR files for Apache POI 3.5, which provi...
How to run "javac" command from JDK tools.jar file? "javac" is the Java compiler command that allows...