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, ≈36🔥, 0💬
Popular Posts:
What is the jaxp\SourceValidator.jav aprovided in the Apache Xerces package? I have Apache Xerces 2....
What Is commons-logging-1.2.jar? commons-logging-1.2.jar is the JAR file for Apache Commons Logging ...
What Is poi-examples-5.2.3.jar? poi-examples-5.2.3.jar is one of the JAR files for Apache POI 5.2.3,...
What JAR files are required to run dom\Writer.java provided in the Apache Xerces package? 3 JAR file...
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...