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:
JDK 11 java.base.jmod - Base Module
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module.
JDK 11 Base module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.base.jmod.
JDK 11 Base module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Base module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/internal/jimage/ImageHeader.java
/* * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.internal.jimage; import java.nio.ByteBuffer; import java.nio.IntBuffer; import java.util.Objects; /** * @implNote This class needs to maintain JDK 8 source compatibility. * * It is used internally in the JDK to implement jimage/jrtfs access, * but also compiled and delivered as part of the jrtfs.jar to support access * to the jimage file provided by the shipped JDK by tools running on JDK 8. */ public final class ImageHeader { public static final int MAGIC = 0xCAFEDADA; public static final int MAJOR_VERSION = 1; public static final int MINOR_VERSION = 0; private static final int HEADER_SLOTS = 7; private final int magic; private final int majorVersion; private final int minorVersion; private final int flags; private final int resourceCount; private final int tableLength; private final int locationsSize; private final int stringsSize; public ImageHeader(int resourceCount, int tableCount, int locationsSize, int stringsSize) { this(MAGIC, MAJOR_VERSION, MINOR_VERSION, 0, resourceCount, tableCount, locationsSize, stringsSize); } public ImageHeader(int magic, int majorVersion, int minorVersion, int flags, int resourceCount, int tableLength, int locationsSize, int stringsSize) { this.magic = magic; this.majorVersion = majorVersion; this.minorVersion = minorVersion; this.flags = flags; this.resourceCount = resourceCount; this.tableLength = tableLength; this.locationsSize = locationsSize; this.stringsSize = stringsSize; } public static int getHeaderSize() { return HEADER_SLOTS * 4; } static ImageHeader readFrom(IntBuffer buffer) { Objects.requireNonNull(buffer); if (buffer.capacity() != HEADER_SLOTS) { throw new InternalError( "jimage header not the correct size: " + buffer.capacity()); } int magic = buffer.get(0); int version = buffer.get(1); int majorVersion = version >>> 16; int minorVersion = version & 0xFFFF; int flags = buffer.get(2); int resourceCount = buffer.get(3); int tableLength = buffer.get(4); int locationsSize = buffer.get(5); int stringsSize = buffer.get(6); return new ImageHeader(magic, majorVersion, minorVersion, flags, resourceCount, tableLength, locationsSize, stringsSize); } public void writeTo(ImageStream stream) { Objects.requireNonNull(stream); stream.ensure(getHeaderSize()); writeTo(stream.getBuffer()); } public void writeTo(ByteBuffer buffer) { Objects.requireNonNull(buffer); buffer.putInt(magic); buffer.putInt(majorVersion << 16 | minorVersion); buffer.putInt(flags); buffer.putInt(resourceCount); buffer.putInt(tableLength); buffer.putInt(locationsSize); buffer.putInt(stringsSize); } public int getMagic() { return magic; } public int getMajorVersion() { return majorVersion; } public int getMinorVersion() { return minorVersion; } public int getFlags() { return flags; } public int getResourceCount() { return resourceCount; } public int getTableLength() { return tableLength; } public int getRedirectSize() { return tableLength * 4; } public int getOffsetsSize() { return tableLength * 4; } public int getLocationsSize() { return locationsSize; } public int getStringsSize() { return stringsSize; } public int getIndexSize() { return getHeaderSize() + getRedirectSize() + getOffsetsSize() + getLocationsSize() + getStringsSize(); } int getRedirectOffset() { return getHeaderSize(); } int getOffsetsOffset() { return getRedirectOffset() + getRedirectSize(); } int getLocationsOffset() { return getOffsetsOffset() + getOffsetsSize(); } int getStringsOffset() { return getLocationsOffset() + getLocationsSize(); } }
⏎ jdk/internal/jimage/ImageHeader.java
Or download all of them as a single archive file:
File name: java.base-11.0.1-src.zip File size: 8740354 bytes Release date: 2018-11-04 Download
2020-05-29, 207158👍, 0💬
Popular Posts:
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
What Is javamail1_1_3.zip? javamail1_1_3.zip is the binary package of JavaMail API 1.1.3 in ZIP form...
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...
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...