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/channels/SeekableByteChannel.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.channels; import java.nio.ByteBuffer; import java.io.IOException; /** * A byte channel that maintains a current <i>position</i> and allows the * position to be changed. * * <p> A seekable byte channel is connected to an entity, typically a file, * that contains a variable-length sequence of bytes that can be read and * written. The current position can be {@link #position() <i>queried</i>} and * {@link #position(long) <i>modified</i>}. The channel also provides access to * the current <i>size</i> of the entity to which the channel is connected. The * size increases when bytes are written beyond its current size; the size * decreases when it is {@link #truncate <i>truncated</i>}. * * <p> The {@link #position(long) position} and {@link #truncate truncate} methods * which do not otherwise have a value to return are specified to return the * channel upon which they are invoked. This allows method invocations to be * chained. Implementations of this interface should specialize the return type * so that method invocations on the implementation class can be chained. * * @since 1.7 * @see java.nio.file.Files#newByteChannel */ public interface SeekableByteChannel extends ByteChannel { /** * Reads a sequence of bytes from this channel into the given buffer. * * <p> Bytes are read starting at this channel's current position, and * then the position is updated with the number of bytes actually read. * Otherwise this method behaves exactly as specified in the {@link * ReadableByteChannel} interface. */ @Override int read(ByteBuffer dst) throws IOException; /** * Writes a sequence of bytes to this channel from the given buffer. * * <p> Bytes are written starting at this channel's current position, unless * the channel is connected to an entity such as a file that is opened with * the {@link java.nio.file.StandardOpenOption#APPEND APPEND} option, in * which case the position is first advanced to the end. The entity to which * the channel is connected is grown, if necessary, to accommodate the * written bytes, and then the position is updated with the number of bytes * actually written. Otherwise this method behaves exactly as specified by * the {@link WritableByteChannel} interface. */ @Override int write(ByteBuffer src) throws IOException; /** * Returns this channel's position. * * @return This channel's position, * a non-negative integer counting the number of bytes * from the beginning of the entity to the current position * * @throws ClosedChannelException * If this channel is closed * @throws IOException * If some other I/O error occurs */ long position() throws IOException; /** * Sets this channel's position. * * <p> Setting the position to a value that is greater than the current size * is legal but does not change the size of the entity. A later attempt to * read bytes at such a position will immediately return an end-of-file * indication. A later attempt to write bytes at such a position will cause * the entity to grow to accommodate the new bytes; the values of any bytes * between the previous end-of-file and the newly-written bytes are * unspecified. * * <p> Setting the channel's position is not recommended when connected to * an entity, typically a file, that is opened with the {@link * java.nio.file.StandardOpenOption#APPEND APPEND} option. When opened for * append, the position is first advanced to the end before writing. * * @param newPosition * The new position, a non-negative integer counting * the number of bytes from the beginning of the entity * * @return This channel * * @throws ClosedChannelException * If this channel is closed * @throws IllegalArgumentException * If the new position is negative * @throws IOException * If some other I/O error occurs */ SeekableByteChannel position(long newPosition) throws IOException; /** * Returns the current size of entity to which this channel is connected. * * @return The current size, measured in bytes * * @throws ClosedChannelException * If this channel is closed * @throws IOException * If some other I/O error occurs */ long size() throws IOException; /** * Truncates the entity, to which this channel is connected, to the given * size. * * <p> If the given size is less than the current size then the entity is * truncated, discarding any bytes beyond the new end. If the given size is * greater than or equal to the current size then the entity is not modified. * In either case, if the current position is greater than the given size * then it is set to that size. * * <p> An implementation of this interface may prohibit truncation when * connected to an entity, typically a file, opened with the {@link * java.nio.file.StandardOpenOption#APPEND APPEND} option. * * @param size * The new size, a non-negative byte count * * @return This channel * * @throws NonWritableChannelException * If this channel was not opened for writing * @throws ClosedChannelException * If this channel is closed * @throws IllegalArgumentException * If the new size is negative * @throws IOException * If some other I/O error occurs */ SeekableByteChannel truncate(long size) throws IOException; }
⏎ java/nio/channels/SeekableByteChannel.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, 249939👍, 4💬
Popular Posts:
JDK 11 jdk.jshell.jmod is the JMOD file for JDK 11 JShell tool, which can be invoked by the "jshell"...
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
Apache Log4j API provides the interface that applications should code to and provides the adapter co...
How to display XML element type information with the jaxp\TypeInfoWriter.java provided in the Apache...
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.ja.. .