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 java.base.jmod - Base Module
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module.
JDK 11 Base module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.base.jmod.
JDK 11 Base module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Base module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/io/Bits.java
/* * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.io; /** * Utility methods for packing/unpacking primitive values in/out of byte arrays * using big-endian byte ordering. */ class Bits { /* * Methods for unpacking primitive values from byte arrays starting at * given offsets. */ static boolean getBoolean(byte[] b, int off) { return b[off] != 0; } static char getChar(byte[] b, int off) { return (char) ((b[off + 1] & 0xFF) + (b[off] << 8)); } static short getShort(byte[] b, int off) { return (short) ((b[off + 1] & 0xFF) + (b[off] << 8)); } static int getInt(byte[] b, int off) { return ((b[off + 3] & 0xFF) ) + ((b[off + 2] & 0xFF) << 8) + ((b[off + 1] & 0xFF) << 16) + ((b[off ] ) << 24); } static float getFloat(byte[] b, int off) { return Float.intBitsToFloat(getInt(b, off)); } static long getLong(byte[] b, int off) { return ((b[off + 7] & 0xFFL) ) + ((b[off + 6] & 0xFFL) << 8) + ((b[off + 5] & 0xFFL) << 16) + ((b[off + 4] & 0xFFL) << 24) + ((b[off + 3] & 0xFFL) << 32) + ((b[off + 2] & 0xFFL) << 40) + ((b[off + 1] & 0xFFL) << 48) + (((long) b[off]) << 56); } static double getDouble(byte[] b, int off) { return Double.longBitsToDouble(getLong(b, off)); } /* * Methods for packing primitive values into byte arrays starting at given * offsets. */ static void putBoolean(byte[] b, int off, boolean val) { b[off] = (byte) (val ? 1 : 0); } static void putChar(byte[] b, int off, char val) { b[off + 1] = (byte) (val ); b[off ] = (byte) (val >>> 8); } static void putShort(byte[] b, int off, short val) { b[off + 1] = (byte) (val ); b[off ] = (byte) (val >>> 8); } static void putInt(byte[] b, int off, int val) { b[off + 3] = (byte) (val ); b[off + 2] = (byte) (val >>> 8); b[off + 1] = (byte) (val >>> 16); b[off ] = (byte) (val >>> 24); } static void putFloat(byte[] b, int off, float val) { putInt(b, off, Float.floatToIntBits(val)); } static void putLong(byte[] b, int off, long val) { b[off + 7] = (byte) (val ); b[off + 6] = (byte) (val >>> 8); b[off + 5] = (byte) (val >>> 16); b[off + 4] = (byte) (val >>> 24); b[off + 3] = (byte) (val >>> 32); b[off + 2] = (byte) (val >>> 40); b[off + 1] = (byte) (val >>> 48); b[off ] = (byte) (val >>> 56); } static void putDouble(byte[] b, int off, double val) { putLong(b, off, Double.doubleToLongBits(val)); } }
⏎ java/io/Bits.java
Or download all of them as a single archive file:
File name: java.base-11.0.1-src.zip File size: 8740354 bytes Release date: 2018-11-04 Download
2020-05-29, 202169👍, 0💬
Popular Posts:
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module. JDK 11 Base module compiled class fil...
JDK 11 jdk.crypto.ec.jmod is the JMOD file for JDK 11 Crypto EC module. JDK 11 Crypto EC module comp...
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...
What is the jaxp\SourceValidator.jav aprovided in the Apache Xerces package? I have Apache Xerces 2....