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 java.management.jmod - Management Module
JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module.
JDK 11 Management module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.management.jmod.
JDK 11 Management module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Management module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.management.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ javax/management/loading/MLetParser.java
/* * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.management.loading; import static com.sun.jmx.defaults.JmxProperties.MLET_LOGGER; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; import java.net.URL; import java.net.URLConnection; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; import java.lang.System.Logger.Level; /** * This class is used for parsing URLs. * * @since 1.5 */ class MLetParser { /* * ------------------------------------------ * PRIVATE VARIABLES * ------------------------------------------ */ /** * The current character */ private int c; /** * Tag to parse. */ private static String tag = "mlet"; /* * ------------------------------------------ * CONSTRUCTORS * ------------------------------------------ */ /** * Create an MLet parser object */ public MLetParser() { } /* * ------------------------------------------ * PUBLIC METHODS * ------------------------------------------ */ /** * Scan spaces. */ public void skipSpace(Reader in) throws IOException { while ((c >= 0) && ((c == ' ') || (c == '\t') || (c == '\n') || (c == '\r'))) { c = in.read(); } } /** * Scan identifier */ public String scanIdentifier(Reader in) throws IOException { StringBuilder buf = new StringBuilder(); while (true) { if (((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z')) || ((c >= '0') && (c <= '9')) || (c == '_')) { buf.append((char)c); c = in.read(); } else { return buf.toString(); } } } /** * Scan tag */ public Map<String,String> scanTag(Reader in) throws IOException { Map<String,String> atts = new HashMap<String,String>(); skipSpace(in); while (c >= 0 && c != '>') { if (c == '<') throw new IOException("Missing '>' in tag"); String att = scanIdentifier(in); String val = ""; skipSpace(in); if (c == '=') { int quote = -1; c = in.read(); skipSpace(in); if ((c == '\'') || (c == '\"')) { quote = c; c = in.read(); } StringBuilder buf = new StringBuilder(); while ((c > 0) && (((quote < 0) && (c != ' ') && (c != '\t') && (c != '\n') && (c != '\r') && (c != '>')) || ((quote >= 0) && (c != quote)))) { buf.append((char)c); c = in.read(); } if (c == quote) { c = in.read(); } skipSpace(in); val = buf.toString(); } atts.put(att.toLowerCase(Locale.ENGLISH), val); skipSpace(in); } return atts; } /** * Scan an html file for {@literal <mlet>} tags. */ public List<MLetContent> parse(URL url) throws IOException { // Warning Messages String requiresTypeWarning = "<arg type=... value=...> tag requires type parameter."; String requiresValueWarning = "<arg type=... value=...> tag requires value parameter."; String paramOutsideWarning = "<arg> tag outside <mlet> ... </mlet>."; String requiresCodeWarning = "<mlet> tag requires either code or object parameter."; String requiresJarsWarning = "<mlet> tag requires archive parameter."; URLConnection conn; conn = url.openConnection(); Reader in = new BufferedReader(new InputStreamReader(conn.getInputStream(), "UTF-8")); // The original URL may have been redirected - this // sets it to whatever URL/codebase we ended up getting // url = conn.getURL(); List<MLetContent> mlets = new ArrayList<MLetContent>(); Map<String,String> atts = null; List<String> types = new ArrayList<String>(); List<String> values = new ArrayList<String>(); // debug("parse","*** Parsing " + url ); while(true) { c = in.read(); if (c == -1) break; if (c == '<') { c = in.read(); if (c == '/') { c = in.read(); String nm = scanIdentifier(in); if (c != '>') throw new IOException("Missing '>' in tag"); if (nm.equalsIgnoreCase(tag)) { if (atts != null) { mlets.add(new MLetContent(url, atts, types, values)); } atts = null; types = new ArrayList<String>(); values = new ArrayList<String>(); } } else { String nm = scanIdentifier(in); if (nm.equalsIgnoreCase("arg")) { Map<String,String> t = scanTag(in); String att = t.get("type"); if (att == null) { MLET_LOGGER.log(Level.TRACE, requiresTypeWarning); throw new IOException(requiresTypeWarning); } else { if (atts != null) { types.add(att); } else { MLET_LOGGER.log(Level.TRACE, paramOutsideWarning); throw new IOException(paramOutsideWarning); } } String val = t.get("value"); if (val == null) { MLET_LOGGER.log(Level.TRACE, requiresValueWarning); throw new IOException(requiresValueWarning); } else { if (atts != null) { values.add(val); } else { MLET_LOGGER.log(Level.TRACE, paramOutsideWarning); throw new IOException(paramOutsideWarning); } } } else { if (nm.equalsIgnoreCase(tag)) { atts = scanTag(in); if (atts.get("code") == null && atts.get("object") == null) { MLET_LOGGER.log(Level.TRACE, requiresCodeWarning); throw new IOException(requiresCodeWarning); } if (atts.get("archive") == null) { MLET_LOGGER.log(Level.TRACE, requiresJarsWarning); throw new IOException(requiresJarsWarning); } } } } } } in.close(); return mlets; } /** * Parse the document pointed by the URL urlname */ public List<MLetContent> parseURL(String urlname) throws IOException { // Parse the document // URL url; if (urlname.indexOf(':') <= 1) { String userDir = System.getProperty("user.dir"); String prot; if (userDir.charAt(0) == '/' || userDir.charAt(0) == File.separatorChar) { prot = "file:"; } else { prot = "file:/"; } url = new URL(prot + userDir.replace(File.separatorChar, '/') + "/"); url = new URL(url, urlname); } else { url = new URL(urlname); } // Return list of parsed MLets // return parse(url); } }
⏎ javax/management/loading/MLetParser.java
Or download all of them as a single archive file:
File name: java.management-11.0.1-src.zip File size: 828174 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.management.rmi.jmod - Management RMI Module
2020-04-30, 97615👍, 0💬
Popular Posts:
JDK 11 jdk.compiler.jmod is the JMOD file for JDK 11 Compiler tool, which can be invoked by the "jav...
What Is commons-codec-1.4.jar? commons-codec-1.4.jar is the JAR file for Apache Commons Codec 1.4, w...
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...
How to download and install Apache ZooKeeper Source Package? Apache ZooKeeper is an open-source serv...
The JSR 105 XML Digital Signature 1.0.1 FCS implementation provides an API and implementation that a...