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.jfr.jmod - JFR Module
JDK 17 jdk.jfr.jmod is the JMOD file for JDK 17 JFR module.
JDK 17 JFR module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jfr.jmod.
JDK 17 JFR module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JFR module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jfr.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/jfr/internal/jfc/model/Parser.java
/* * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.jfr.internal.jfc.model; import java.io.FileReader; import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Path; import java.text.ParseException; import java.util.ArrayDeque; import java.util.Deque; import jdk.internal.org.xml.sax.Attributes; import jdk.internal.org.xml.sax.InputSource; import jdk.internal.org.xml.sax.SAXException; import jdk.internal.org.xml.sax.helpers.DefaultHandler; import jdk.internal.util.xml.SAXParser; import jdk.internal.util.xml.impl.SAXParserImpl; final class Parser { static XmlConfiguration parse(Path path) throws ParseException, IOException { try (FileReader r = new FileReader(path.toFile(), Charset.forName("UTF-8"))) { SAXParser saxParser = new SAXParserImpl(); ConfigurationHandler handler = new ConfigurationHandler(); saxParser.parse(new InputSource(r), handler); return handler.configuration; } catch (SAXException sp) { ParseException pe = new ParseException(sp.getMessage(), -1); pe.initCause(sp); throw pe; } } private static final class ConfigurationHandler extends DefaultHandler { private final Deque<XmlElement> stack = new ArrayDeque<>(); private final StringBuilder buffer = new StringBuilder(); private XmlConfiguration configuration; @Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (configuration == null) { if (!qName.equalsIgnoreCase("configuration")) { throw new SAXException("Expected root element to be named 'configuration'"); } configuration = new XmlConfiguration(); addAttributes(configuration, attributes); stack.push(configuration); return; } XmlElement current = stack.peek(); XmlElement child = current.createChild(qName); addAttributes(child, attributes); stack.push(child); } @Override public void characters(char ch[], int start, int length) throws SAXException { buffer.append(ch, start, length); } @Override public void endElement(String uri, String localName, String qName) { String content = buffer.toString().strip(); if (!content.isEmpty()) { stack.peek().setContent(content); buffer.setLength(0); } XmlElement current = stack.peek(); if (current.getElementName().equalsIgnoreCase(qName)) { stack.pop(); } else { throw new IllegalStateException("Unexpected <" + qName + "/>"); } } private void addAttributes(XmlElement element, Attributes attributes) { for (int i = 0; i < attributes.getLength(); i++) { element.setAttribute(attributes.getQName(i), attributes.getValue(i)); } } } }
⏎ jdk/jfr/internal/jfc/model/Parser.java
Or download all of them as a single archive file:
File name: jdk.jfr-17.0.5-src.zip File size: 363343 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jlink.jmod - JLink Tool
2023-04-17, 8920👍, 0💬
Popular Posts:
MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but c...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
JRE 5 sunjce_provider.jar is the JAR file for JRE 5 Sun JCE Provider, which provides implementations...
How to show the XML parsing flow with sax\DocumentTracer.java provided in the Apache Xerces package?...
What Is in Xerces-J-bin.2.12.2.zip? Xerces-J-bin.2.12.2.zip file is the distribution package ZIP fil...