Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
Collections:
Other Resources:
JDK 11 jdk.hotspot.agent.jmod - Hotspot Agent Module
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module.
JDK 11 Hotspot Agent module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.hotspot.agent.jmod.
JDK 11 Hotspot Agent module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Hotspot Agent module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.hotspot.agent.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/jvm/hotspot/debugger/InputLexer.java
/* * Copyright (c) 2000, 2001, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * */ package sun.jvm.hotspot.debugger; import java.io.*; /** InputLexer is the lexer through which the current set of debuggers see the debug server. It provides the ability to read all of the types the debuggers are interested in. All read operations are blocking. */ public class InputLexer { public InputLexer(BufferedInputStream in) throws IOException { this.in = in; pushedBack = false; } public void close() throws IOException { in.close(); } /** Parses a boolean (really either a 0 or 1 integer in US-ASCII encoding) on the input stream */ public boolean parseBoolean() throws IOException { int val = parseInt(); return (val != 0); } /** Parses an int in US-ASCII encoding on the input stream */ public int parseInt() throws IOException { long l = parseLong(); long mask = 0xFFFFFFFF00000000L; if ((l & mask) != 0) { throw new IOException("Overflow error reading int from debug server (read " + l + ")"); } return (int) l; } /** Parses a long in US-ASCII encoding on the input stream */ public long parseLong() throws IOException { skipWhitespace(); byte b = readByte(); if (!Character.isDigit((char) b)) { error(); } long l = 0; while (Character.isDigit((char) b)) { l *= 10; l += (b - '0'); b = readByte(); } pushBack(b); return l; } /** Parses an address in the form 0x12345678 in US-ASCII encoding on the input stream */ public long parseAddress() throws IOException { skipWhitespace(); byte b; if ((b = readByte()) != '0') { error(); } b = readByte(); if (b != 'x') { error(); } long val = 0; while (isHexDigit((char) (b = readByte()))) { val *= 16; val += Character.digit((char) b, 16); } pushBack(b); return val; } public void skipByte() throws IOException { readByte(); } /** Reads binary data; one byte */ public byte readByte() throws IOException { if (pushedBack) { pushedBack = false; return backBuf; } return readByteInternal(); } /** Reads a block of binary data in BLOCKING fashion */ public void readBytes(byte[] buf, int off, int len) throws IOException { int startIdx = off; int numRead = 0; if (pushedBack) { buf[startIdx] = backBuf; pushedBack = false; ++startIdx; ++numRead; } while (numRead < len) { numRead += in.read(buf, startIdx + numRead, len - numRead); } // if (numRead != len) { // throw new IOException("Only read " + numRead + " out of " + // len + " bytes requested"); // } } /** Reads binary data; one 16-bit character in big-endian format */ public char readChar() throws IOException { int hi = ((int) readByte()) & 0xFF; int lo = ((int) readByte()) & 0xFF; return (char) ((hi << 8) | lo); } /** Reads binary data; one 32-bit unsigned int in big-endian format. Returned as a long. */ public long readUnsignedInt() throws IOException { long b1 = ((long) readByte()) & 0xFF; long b2 = ((long) readByte()) & 0xFF; long b3 = ((long) readByte()) & 0xFF; long b4 = ((long) readByte()) & 0xFF; return ((b1 << 24) | (b2 << 16) | (b3 << 8) | b4); } /** Reads binary data; a US-ASCII string of the specified length */ public String readByteString(int len) throws IOException { byte[] b = new byte[len]; for (int i = 0; i < len; i++) { b[i] = readByte(); } try { return new String(b, "US-ASCII"); } catch (UnsupportedEncodingException e) { throw new IOException(e.toString()); } } /** Reads binary data; a Unicode string of the specified length */ public String readCharString(int len) throws IOException { char[] c = new char[len]; for (int i = 0; i < len; i++) { c[i] = readChar(); } return new String(c); } //---------------------------------------------------------------------- // Internals only below this point // private void skipWhitespace() throws IOException { byte b; while (Character.isWhitespace((char) (b = readByte()))) { } pushBack(b); } private boolean isHexDigit(char c) { return (('0' <= c && c <= '9') || ('a' <= c && c <= 'f') || ('A' <= c && c <= 'F')); } private void pushBack(byte b) { if (pushedBack) { throw new InternalError("Only one character pushback supported"); } backBuf = b; pushedBack = true; } private byte readByteInternal() throws IOException { int i = in.read(); if (i == -1) { throw new IOException("End-of-file reached while reading from server"); } return (byte) i; } private void error() throws IOException { throw new IOException("Error parsing output of debug server"); } private BufferedInputStream in; private boolean pushedBack; private byte backBuf; }
⏎ sun/jvm/hotspot/debugger/InputLexer.java
Or download all of them as a single archive file:
File name: jdk.hotspot.agent-11.0.1-src.zip File size: 1243786 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.httpserver.jmod - HTTP Server Module
2020-02-29, 157645👍, 0💬
Popular Posts:
What Is poi-scratchpad-3.5.jar? poi-scratchpad-3.5.jar is one of the JAR files for Apache POI 3.5, w...
How to display types defined in an XML Schema file with the xs\QueryXS.java provided in the Apache X...
Apache ZooKeeper is an open-source server which enables highly reliable distributed coordination. Ap...
io.jar is a component in iText Java library to provide input/output functionalities. iText Java libr...
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...