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 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/tool/StructuredWriter.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.tool;
import java.io.PrintWriter;
abstract class StructuredWriter {
private final PrintWriter out;
private final StringBuilder builder = new StringBuilder(4000);
private char[] indentionArray = new char[0];
private int indent = 0;
private int column;
// print first event immediately so tool feels responsive
private boolean first = true;
private String lineSeparator = String.format("%n");
StructuredWriter(PrintWriter p) {
out = p;
}
public void setLineSeparator(String lineSeparator) {
this.lineSeparator = lineSeparator;
}
protected final int getColumn() {
return column;
}
// Flush to print writer
public final void flush(boolean hard) {
if (hard) {
out.print(builder.toString());
builder.setLength(0);
return;
}
if (first || builder.length() > 100_000) {
out.print(builder.toString());
builder.setLength(0);
first = false;
}
}
public final void printIndent() {
builder.append(indentionArray, 0, indent);
column += indent;
}
public final void println() {
builder.append(lineSeparator);
column = 0;
}
public final void print(String... texts) {
for (String text : texts) {
print(text);
}
}
public final void printAsString(Object o) {
print(String.valueOf(o));
}
public final void print(String text) {
builder.append(text);
column += text.length();
}
public final void print(char c) {
builder.append(c);
column++;
}
public final void print(int value) {
print(String.valueOf(value));
}
public final void indent() {
indent += 2;
updateIndent();
}
public final void retract() {
indent -= 2;
updateIndent();
}
public final void println(String text) {
print(text);
println();
}
private void updateIndent() {
if (indent > indentionArray.length) {
indentionArray = new char[indent];
for (int i = 0; i < indentionArray.length; i++) {
indentionArray[i] = ' ';
}
}
}
}
⏎ jdk/jfr/internal/tool/StructuredWriter.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, ≈108🔥, 0💬
Popular Posts:
Rhino JavaScript Java Library is an open-source implementation of JavaScript written entirely in Jav...
What Is poi-scratchpad-3.5.jar? poi-scratchpad-3.5.jar is one of the JAR files for Apache POI 3.5, w...
commons-lang-1.0.1.jar is the JAR file for Apache Commons Lang 1.0.1, which provides a host of helpe...
JDK 17 java.security.jgss.jmod is the JMOD file for JDK 17 Security JGSS (Java Generic Security Serv...
What Is mail.jar of JavaMail 1.3? I got the JAR file from javamail-1_3.zip. mail.jar in javamail-1_3...