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/util/xml/impl/ReaderUTF16.java
/* * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.internal.util.xml.impl; import java.io.Reader; import java.io.InputStream; import java.io.IOException; /** * UTF-16 encoded stream reader. */ public class ReaderUTF16 extends Reader { private InputStream is; private char bo; /** * Constructor. * * Byte order argument can be: 'l' for little-endian or 'b' for big-endian. * * @param is A byte input stream. * @param bo A byte order in the input stream. */ public ReaderUTF16(InputStream is, char bo) { switch (bo) { case 'l': break; case 'b': break; default: throw new IllegalArgumentException(""); } this.bo = bo; this.is = is; } /** * Reads characters into a portion of an array. * * @param cbuf Destination buffer. * @param off Offset at which to start storing characters. * @param len Maximum number of characters to read. * @exception IOException If any IO errors occur. */ public int read(char[] cbuf, int off, int len) throws IOException { int num = 0; int val; if (bo == 'b') { while (num < len) { if ((val = is.read()) < 0) { return (num != 0) ? num : -1; } cbuf[off++] = (char) ((val << 8) | (is.read() & 0xff)); num++; } } else { while (num < len) { if ((val = is.read()) < 0) { return (num != 0) ? num : -1; } cbuf[off++] = (char) ((is.read() << 8) | (val & 0xff)); num++; } } return num; } /** * Reads a single character. * * @return The character read, as an integer in the range 0 to 65535 * (0x0000-0xffff), or -1 if the end of the stream has been reached. * @exception IOException If any IO errors occur. */ public int read() throws IOException { int val; if ((val = is.read()) < 0) { return -1; } if (bo == 'b') { val = (char) ((val << 8) | (is.read() & 0xff)); } else { val = (char) ((is.read() << 8) | (val & 0xff)); } return val; } /** * Closes the stream. * * @exception IOException If any IO errors occur. */ public void close() throws IOException { is.close(); } }
⏎ jdk/internal/util/xml/impl/ReaderUTF16.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, 206362👍, 0💬
Popular Posts:
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
JDK 17 jdk.compiler.jmod is the JMOD file for JDK 17 Compiler tool, which can be invoked by the "jav...
What Is poi-scratchpad-3.5.jar? poi-scratchpad-3.5.jar is one of the JAR files for Apache POI 3.5, w...
A stream buffer is a stream-based representation of an XML infoset in Java. Stream buffers are desig...
JRE 8 deploy.jar is the JAR file for JRE 8 Java Control Panel and other deploy tools. JRE (Java Runt...