JDK 11 jdk.jfr.jmod - JFR Module

JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module.

JDK 11 JFR module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jfr.jmod.

JDK 11 JFR module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.

JDK 11 JFR module source code files are stored in \fyicenter\jdk-11.0.1\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/cmd/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.cmd;

import java.io.PrintWriter;

abstract class StructuredWriter {
    private final static String LINE_SEPARATOR = String.format("%n");

    private final PrintWriter out;
    private final StringBuilder builder = new StringBuilder(4000);

    private char[] indentionArray = new char[0];
    private int indent = 0;
    private int column;

    StructuredWriter(PrintWriter p) {
        out = p;
    }

    final protected int getColumn() {
        return column;
    }

    // Flush to print writer
    public final void flush() {
        out.print(builder.toString());
        builder.setLength(0);
    }

    final public void printIndent() {
        builder.append(indentionArray, 0, indent);
        column += indent;
    }

    final public void println() {
        builder.append(LINE_SEPARATOR);
        column = 0;
    }

    final public void print(String... texts) {
        for (String text : texts) {
            print(text);
        }
    }

    final public void printAsString(Object o) {
        print(String.valueOf(o));
    }

    final public void print(String text) {
        builder.append(text);
        column += text.length();
    }

    final public void print(char c) {
        builder.append(c);
        column++;
    }

    final public void print(int value) {
        print(String.valueOf(value));
    }

    final public void indent() {
        indent += 2;
        updateIndent();
    }

    final public void retract() {
        indent -= 2;
        updateIndent();
    }

    final public 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/cmd/StructuredWriter.java

 

JDK 11 jdk.jlink.jmod - JLink Tool

JDK 11 jdk.jdwp.agent.jmod - JDWP Agent Module

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2020-06-30, 9913👍, 0💬