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.jdeps.jmod - JDeps Tool
JDK 17 jdk.jdeps.jmod is the JMOD file for JDK 17 JDeps tool, which can be invoked by the "jdeps" command.
JDK 17 JDeps tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jdeps.jmod.
JDK 17 JDeps tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JDeps tool source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jdeps.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/tools/jdeprscan/CSV.java
/* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.tools.jdeprscan; import java.io.PrintStream; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; /** * Utility class for manipulating comma-separated-value (CSV) data. */ public class CSV { static String quote(String input) { String result; boolean needQuote = input.contains(","); if (input.contains("\"")) { needQuote = true; result = input.replace("\"", "\"\""); } else { result = input; } if (needQuote) { return "\"" + result + "\""; } else { return result; } } /** * Writes the objects' string representations to the output as a line of CSV. * The objects are converted to String, quoted if necessary, joined with commas, * and are written to the output followed by the line separator string. * * @param out the output destination * @param objs the objects to write */ public static void write(PrintStream out, Object... objs) { out.println(Arrays.stream(objs) .map(Object::toString) .map(CSV::quote) .collect(Collectors.joining(","))); } /** * The CSV parser state. */ enum State { START_FIELD, // the start of a field IN_FIELD, // within an unquoted field IN_QFIELD, // within a quoted field END_QFIELD // after the end of a quoted field } /** * Splits an input line into a list of strings, handling quoting. * * @param input the input line * @return the resulting list of strings */ public static List<String> split(String input) { List<String> result = new ArrayList<>(); StringBuilder cur = new StringBuilder(); State state = State.START_FIELD; for (int i = 0; i < input.length(); i++) { char ch = input.charAt(i); switch (ch) { case ',': switch (state) { case IN_QFIELD: cur.append(','); break; default: result.add(cur.toString()); cur.setLength(0); state = State.START_FIELD; break; } break; case '"': switch (state) { case START_FIELD: state = State.IN_QFIELD; break; case IN_QFIELD: state = State.END_QFIELD; break; case IN_FIELD: throw new CSVParseException("unexpected quote", input, i); case END_QFIELD: cur.append('"'); state = State.IN_QFIELD; break; } break; default: switch (state) { case START_FIELD: state = State.IN_FIELD; break; case IN_FIELD: case IN_QFIELD: break; case END_QFIELD: throw new CSVParseException("extra character after quoted string", input, i); } cur.append(ch); break; } } if (state == State.IN_QFIELD) { throw new CSVParseException("unclosed quote", input, input.length()); } result.add(cur.toString()); return result; } }
⏎ com/sun/tools/jdeprscan/CSV.java
Or download all of them as a single archive file:
File name: jdk.jdeps-17.0.5-src.zip File size: 258425 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jdi.jmod - JDI Tool
2023-04-17, 5974👍, 0💬
Popular Posts:
What is the dom\GetElementsByTagName .javaprovided in the Apache Xerces package? I have Apache Xerce...
How to read XML document with XML Schema validation from socket connections with the socket\DelayedI...
Where to find answers to frequently asked questions on Download and Installing of Older Versions? He...
The Jakarta-ORO Java classes are a set of text-processing Java classes that provide Perl5 compatible...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...