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 jdk.jlink.jmod - JLink Tool
JDK 11 jdk.jlink.jmod is the JMOD file for JDK 11 JLink tool, which can be invoked by the "jlink" command.
JDK 11 JLink tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jlink.jmod.
JDK 11 JLink tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JLink tool source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jlink.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/tools/jlink/internal/JmodArchive.java
/* * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.tools.jlink.internal; import java.io.IOException; import java.io.InputStream; import java.io.UncheckedIOException; import java.nio.file.Path; import java.util.Objects; import java.util.stream.Stream; import jdk.internal.jmod.JmodFile; import jdk.tools.jlink.internal.Archive.Entry.EntryType; /** * An Archive backed by a jmod file. */ public class JmodArchive implements Archive { private static final String JMOD_EXT = ".jmod"; /** * An entry located in a jmod file. */ public class JmodEntry extends Entry { private final JmodFile.Entry entry; JmodEntry(String path, String name, EntryType type, JmodFile.Entry entry) { super(JmodArchive.this, path, name, type); this.entry = Objects.requireNonNull(entry); } /** * Returns the number of uncompressed bytes for this entry. */ @Override public long size() { return entry.size(); } @Override public InputStream stream() throws IOException { return jmodFile.getInputStream(entry.section(), entry.name()); } } private final Path file; private final String moduleName; private JmodFile jmodFile; public JmodArchive(String mn, Path jmod) { Objects.requireNonNull(mn); Objects.requireNonNull(jmod.getFileName()); String filename = jmod.toString(); if (!filename.endsWith(JMOD_EXT)) { throw new UnsupportedOperationException("Unsupported format: " + filename); } this.moduleName = mn; this.file = jmod; } @Override public String moduleName() { return moduleName; } @Override public Path getPath() { return file; } @Override public Stream<Entry> entries() { ensureOpen(); return jmodFile.stream() .map(this::toEntry); } @Override public void open() throws IOException { if (jmodFile != null) { jmodFile.close(); } this.jmodFile = new JmodFile(file); } @Override public void close() throws IOException { if (jmodFile != null) { jmodFile.close(); } } private void ensureOpen() { if (jmodFile == null) { try { open(); } catch(IOException ioe){ throw new UncheckedIOException(ioe); } } } private EntryType toEntryType(JmodFile.Section section) { switch (section) { case CLASSES: return EntryType.CLASS_OR_RESOURCE; case CONFIG: return EntryType.CONFIG; case HEADER_FILES: return EntryType.HEADER_FILE; case LEGAL_NOTICES: return EntryType.LEGAL_NOTICE; case MAN_PAGES: return EntryType.MAN_PAGE; case NATIVE_LIBS: return EntryType.NATIVE_LIB; case NATIVE_CMDS: return EntryType.NATIVE_CMD; default: throw new InternalError("unexpected entry: " + section); } } private Entry toEntry(JmodFile.Entry entry) { EntryType type = toEntryType(entry.section()); String prefix = entry.section().jmodDir(); String name = entry.name(); String path = prefix + "/" + name; String resourceName = name; // The resource name represents the path of ResourcePoolEntry // and its subpath defines the ultimate path to be written // to the image relative to the directory corresponding to that // resource type. // // For classes and resources, the resource name does not have // a prefix (<package>/<name>). They will be written to the jimage. // // For other kind of entries, it will keep the section name as // the prefix for unique identification. The subpath (taking // out the section name) is the pathname to be written to the // corresponding directory in the image. // if (type == EntryType.LEGAL_NOTICE) { // legal notices are written to per-module directory resourceName = prefix + "/" + moduleName + "/" + name; } else if (type != EntryType.CLASS_OR_RESOURCE) { resourceName = path; } return new JmodEntry(path, resourceName, type, entry); } }
⏎ jdk/tools/jlink/internal/JmodArchive.java
Or download all of them as a single archive file:
File name: jdk.jlink-11.0.1-src.zip File size: 155677 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jshell.jmod - JShell Tool
2020-06-30, 25199👍, 0💬
Popular Posts:
JDK 11 jdk.internal.opt.jmod is the JMOD file for JDK 11 Internal Opt module. JDK 11 Internal Opt mo...
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...
JDK 11 jdk.internal.JVM Stat.jmod is the JMOD file for JDK 11 Internal Jvmstat module. JDK 11 Intern...
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.ja.. .
How to download and install xml-commons External Source Package? The source package contains Java so...