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/JFCParserHandler.java
/* * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.jfr.internal.jfc; import java.util.LinkedHashMap; import java.util.Map; import jdk.internal.org.xml.sax.Attributes; import jdk.internal.org.xml.sax.SAXException; import jdk.internal.org.xml.sax.helpers.DefaultHandler; final class JFCParserHandler extends DefaultHandler { private static final String ELEMENT_CONFIGURATION = "configuration"; private static final String ELEMENT_EVENT_TYPE = "event"; private static final String ELEMENT_SETTING = "setting"; private static final String ATTRIBUTE_NAME = "name"; private static final String ATTRIBUTE_LABEL = "label"; private static final String ATTRIBUTE_DESCRIPTION = "description"; private static final String ATTRIBUTE_PROVIDER = "provider"; private static final String ATTRIBUTE_VERSION = "version"; final Map<String, String> settings = new LinkedHashMap<String, String>(); private final StringBuilder currentCharacters = new StringBuilder(); private String currentEventName; private String currentSettingsName; String label; String provider; String description; @Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { switch (qName.toLowerCase()) { case ELEMENT_CONFIGURATION: String version = attributes.getValue(ATTRIBUTE_VERSION); if (version == null || !version.startsWith("2.")) { throw new SAXException("This version of Flight Recorder can only read JFC file format version 2.x"); } label = attributes.getValue(ATTRIBUTE_LABEL); description = getOptional(attributes, ATTRIBUTE_DESCRIPTION, ""); provider = getOptional(attributes, ATTRIBUTE_PROVIDER, ""); break; case ELEMENT_EVENT_TYPE: currentEventName = attributes.getValue(ATTRIBUTE_NAME); break; case ELEMENT_SETTING: currentSettingsName = attributes.getValue(ATTRIBUTE_NAME); break; } currentCharacters.setLength(0); } private String getOptional(Attributes attributes, String name, String defaultValue) { String value = attributes.getValue(name); return value == null ? defaultValue : value; } @Override public void characters(char[] ch, int start, int length) throws SAXException { if (currentSettingsName != null) { currentCharacters.append(ch, start, length); } } @Override public void endElement(String uri, String localName, String qName) { switch (qName.toLowerCase()) { case ELEMENT_CONFIGURATION: break; case ELEMENT_EVENT_TYPE: currentEventName = null; break; case ELEMENT_SETTING: String settingsValue = currentCharacters.toString(); settings.put(currentEventName + "#" + currentSettingsName, settingsValue); currentSettingsName = null; break; } } }
⏎ jdk/jfr/internal/jfc/JFCParserHandler.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, 8901👍, 0💬
Popular Posts:
Commons Pool provides an Object-pooling API, with three major aspects: 1. A generic object pool inte...
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
maven-compat-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Compact module. The JAR file name may ...
Apache Commons Codec library provides implementations of common encoders and decoders such as Base64...
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...