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
⏎ jdk/internal/reflect/ByteVectorImpl.java
/* * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.internal.reflect; class ByteVectorImpl implements ByteVector { private byte[] data; private int pos; public ByteVectorImpl() { this(100); } public ByteVectorImpl(int sz) { data = new byte[sz]; pos = -1; } public int getLength() { return pos + 1; } public byte get(int index) { if (index >= data.length) { resize(index); pos = index; } return data[index]; } public void put(int index, byte value) { if (index >= data.length) { resize(index); pos = index; } data[index] = value; } public void add(byte value) { if (++pos >= data.length) { resize(pos); } data[pos] = value; } public void trim() { if (pos != data.length - 1) { byte[] newData = new byte[pos + 1]; System.arraycopy(data, 0, newData, 0, pos + 1); data = newData; } } public byte[] getData() { return data; } private void resize(int minSize) { if (minSize <= 2 * data.length) { minSize = 2 * data.length; } byte[] newData = new byte[minSize]; System.arraycopy(data, 0, newData, 0, data.length); data = newData; } }
⏎ jdk/internal/reflect/ByteVectorImpl.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, 207538👍, 0💬
Popular Posts:
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
JSP(tm) Standard Tag Library 1.1 implementation - Jakarta Taglibs hosts the Standard Taglib 1.1, an ...
maven-core-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Core module. Apache Maven is a software ...
pache Derby is an open source relational database implemented entirely in Java and available under t...
JDK 11 java.compiler.jmod is the JMOD file for JDK 11 Compiler module. JDK 11 Compiler module compil...