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.jcmd.jmod - JCmd Tool
JDK 17 jdk.jcmd.jmod is the JMOD file for JDK 17 JCmd tool,
which can be invoked by the "jcmd" command.
JDK 17 JCmd tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jcmd.jmod.
JDK 17 JCmd tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JCmd source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jcmd.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/tools/jstat/RowClosure.java
/* * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.tools.jstat; import java.text.*; import sun.jvmstat.monitor.*; /** * A class implementing the Closure interface for iterating over the * specified columns of data and generating the columnized string of * data representing a row of output for the form. * * @author Brian Doherty * @since 1.5 */ public class RowClosure implements Closure { private MonitoredVm vm; private StringBuilder row = new StringBuilder(); public RowClosure(MonitoredVm vm) { this.vm = vm; } public void visit(Object o, boolean hasNext) throws MonitorException { if (! (o instanceof ColumnFormat)) { return; } ColumnFormat c = (ColumnFormat)o; String s = null; Expression e = c.getExpression(); ExpressionEvaluator ee = new ExpressionExecuter(vm); Object value = ee.evaluate(e); if (value instanceof String) { s = (String)value; } else if (value instanceof Number) { double d = ((Number)value).doubleValue(); double scaledValue = c.getScale().scale(d); DecimalFormat df = new DecimalFormat(c.getFormat()); DecimalFormatSymbols syms = df.getDecimalFormatSymbols(); syms.setNaN("-"); df.setDecimalFormatSymbols(syms); s = df.format(scaledValue); } c.setPreviousValue(value); s = c.getAlignment().align(s, c.getWidth()); row.append(s); if (hasNext) { row.append(" "); } } public String getRow() { return row.toString(); } }
⏎ sun/tools/jstat/RowClosure.java
Or download all of them as a single archive file:
File name: jdk.jcmd-17.0.5-src.zip File size: 51997 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jconsole.jmod - JConsole Tool
2023-08-17, ∼4574🔥, 0💬
Popular Posts:
Where to find answers to frequently asked questions on Downloading and Using JDK (Java Development K...
What Is jaxb-api-2.1.6.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Java ...
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...
JRE 5 sunjce_provider.jar is the JAR file for JRE 5 Sun JCE Provider, which provides implementations...
What Is commons-logging-1.2.jar? commons-logging-1.2.jar is the JAR file for Apache Commons Logging ...