Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
JDK 11 jdk.internal.jvmstat.jmod - Internal JVM Stat Module
JDK 11 jdk.internal.JVM Stat.jmod is the JMOD file for JDK 11 Internal Jvmstat module.
JDK 11 Internal JVM Stat module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.internal.jvmstat.jmod.
JDK 11 Internal JVM Stat module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Internal JVM Stat module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.internal.jvmstat.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/jvmstat/perfdata/monitor/AliasFileParser.java
/*
* Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.jvmstat.perfdata.monitor;
import java.net.*;
import java.io.*;
import java.util.*;
import java.util.regex.*;
/**
* Class for parsing alias files. File format is expected to follow
* the following syntax:
*
* alias name [alias]*
*
* Java style comments can occur anywhere within the file.
* @author Brian Doherty
* @since 1.5
*/
public class AliasFileParser {
private static final String ALIAS = "alias";
// 8028357 removed old, inefficient debug logging
// other variables
private URL inputfile;
private StreamTokenizer st;
private Token currentToken;
AliasFileParser(URL inputfile) {
this.inputfile = inputfile;
}
// value class to hold StreamTokenizer token values
private class Token {
public String sval;
public int ttype;
public Token(int ttype, String sval) {
this.ttype = ttype;
this.sval = sval;
}
}
/**
* method to get the next token as a Token type
*/
private void nextToken() throws IOException {
st.nextToken();
currentToken = new Token(st.ttype, st.sval);
}
/**
* method to match the current Token to a specified token type and
* value Throws a SyntaxException if token doesn't match.
*/
private void match(int ttype, String token)
throws IOException, SyntaxException {
if ((currentToken.ttype == ttype)
&& (currentToken.sval.compareTo(token) == 0)) {
nextToken();
} else {
throw new SyntaxException(st.lineno());
}
}
/*
* method to match the current Token to a specified token type.
* Throws a SyntaxException if token doesn't match.
*/
private void match(int ttype) throws IOException, SyntaxException {
if (currentToken.ttype == ttype) {
nextToken();
} else {
throw new SyntaxException(st.lineno());
}
}
private void match(String token) throws IOException, SyntaxException {
match(StreamTokenizer.TT_WORD, token);
}
/**
* method to parse the given input file.
*/
public void parse(Map<String, ArrayList<String>> map) throws SyntaxException, IOException {
if (inputfile == null) {
return;
}
BufferedReader r = new BufferedReader(
new InputStreamReader(inputfile.openStream()));
st = new StreamTokenizer(r);
// allow both forms of commenting styles
st.slashSlashComments(true);
st.slashStarComments(true);
st.wordChars('_','_');
nextToken();
while (currentToken.ttype != StreamTokenizer.TT_EOF) {
// look for the start symbol
if ((currentToken.ttype != StreamTokenizer.TT_WORD)
|| (currentToken.sval.compareTo(ALIAS) != 0)) {
nextToken();
continue;
}
match(ALIAS);
String name = currentToken.sval;
match(StreamTokenizer.TT_WORD);
ArrayList<String> aliases = new ArrayList<String>();
do {
aliases.add(currentToken.sval);
match(StreamTokenizer.TT_WORD);
} while ((currentToken.ttype != StreamTokenizer.TT_EOF)
&& (currentToken.sval.compareTo(ALIAS) != 0));
map.put(name, aliases);
}
}
}
⏎ sun/jvmstat/perfdata/monitor/AliasFileParser.java
Or download all of them as a single archive file:
File name: jdk.internal.jvmstat-11.0.1-src.zip File size: 86147 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.internal.le.jmod - Internal Line Editing Module
2020-08-02, ≈32🔥, 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 ...
What Is HttpComponents httpcore-4.2.2.jar? HttpComponents httpcore-4.2.2.jar is the JAR file for Apa...
JRE 8 plugin.jar is the JAR file for JRE 8 Java Control Panel Plugin interface and tools. JRE (Java ...
commons-io-2.6-sources.j aris the source JAR file for Apache Commons IO 2.6, which is a library of u...
maven-core-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Core module. Apache Maven is a software ...