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 17 jdk.jpackage.jmod - JPackage Tool
JDK 17 jdk.jpackage.jmod is the JMOD file for JDK 17 JPackage tool, which can be invoked by the "jpackage" command.
JDK 17 JPackage tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jpackage.jmod.
JDK 17 JPackage tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JPackage tool source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jpackage.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/jpackage/internal/DottedVersion.java
/* * Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.jpackage.internal; import java.math.BigInteger; import java.text.MessageFormat; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.regex.Pattern; import java.util.stream.Collectors; /** * Dotted numeric version string. * E.g.: 1.0.37, 10, 0.5 */ final class DottedVersion implements Comparable<String> { DottedVersion(String version) { greedy = true; components = parseVersionString(version, greedy); value = version; } private DottedVersion(String version, boolean greedy) { this.greedy = greedy; components = parseVersionString(version, greedy); value = version; } static DottedVersion greedy(String version) { return new DottedVersion(version); } static DottedVersion lazy(String version) { return new DottedVersion(version, false); } @Override public int compareTo(String o) { int result = 0; BigInteger[] otherComponents = parseVersionString(o, greedy); for (int i = 0; i < Math.max(components.length, otherComponents.length) && result == 0; ++i) { final BigInteger x; if (i < components.length) { x = components[i]; } else { x = BigInteger.ZERO; } final BigInteger y; if (i < otherComponents.length) { y = otherComponents[i]; } else { y = BigInteger.ZERO; } result = x.compareTo(y); } return result; } private static BigInteger[] parseVersionString(String version, boolean greedy) { Objects.requireNonNull(version); if (version.isEmpty()) { if (!greedy) { return new BigInteger[] {BigInteger.ZERO}; } throw new IllegalArgumentException(I18N.getString( "error.version-string-empty")); } int lastNotZeroIdx = -1; List<BigInteger> components = new ArrayList<>(); for (var component : version.split("\\.", -1)) { if (component.isEmpty()) { if (!greedy) { break; } throw new IllegalArgumentException(MessageFormat.format( I18N.getString( "error.version-string-zero-length-component"), version)); } if (!DIGITS.matcher(component).matches()) { // Catch "+N" and "-N" cases. if (!greedy) { break; } throw new IllegalArgumentException(MessageFormat.format( I18N.getString( "error.version-string-invalid-component"), version, component)); } final BigInteger num; try { num = new BigInteger(component); } catch (NumberFormatException ex) { if (!greedy) { break; } throw new IllegalArgumentException(MessageFormat.format( I18N.getString( "error.version-string-invalid-component"), version, component)); } if (num != BigInteger.ZERO) { lastNotZeroIdx = components.size(); } components.add(num); } if (lastNotZeroIdx + 1 != components.size()) { // Strip trailing zeros. components = components.subList(0, lastNotZeroIdx + 1); } if (components.isEmpty()) { components.add(BigInteger.ZERO); } return components.toArray(BigInteger[]::new); } @Override public String toString() { return value; } BigInteger[] getComponents() { return components; } private final BigInteger[] components; private final String value; private final boolean greedy; private static final Pattern DIGITS = Pattern.compile("\\d+"); }
⏎ jdk/jpackage/internal/DottedVersion.java
Or download all of them as a single archive file:
File name: jdk.jpackage-17.0.5-src.zip File size: 92069 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jshell.jmod - JShell Tool
2023-08-03, 2180👍, 0💬
Popular Posts:
What Is log4j-1.2.13.jar? I got the JAR file from logging-log4j-1.2.13.zip .log4j-1.2.13.jar is the ...
layout.jar is a component in iText Java library to provide layout functionalities. iText Java librar...
Java Cryptography Extension 1.6 JAR File Size and Download Location: File name: jce.jar, jce-1.6.jar...
How to download and install xml-commons External Source Package? The source package contains Java so...
How to display types defined in an XML Schema file with the xs\QueryXS.java provided in the Apache X...