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 11 java.rmi.jmod - RMI Module
JDK 11 java.rmi.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) module.
JDK 11 RMI module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.rmi.jmod.
JDK 11 RMI module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 RMI module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.rmi.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/rmi/log/LogInputStream.java
/*
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.rmi.log;
import java.io.*;
public
class LogInputStream extends InputStream {
private InputStream in;
private int length;
/**
* Creates a log input file with the specified system dependent
* file descriptor.
* @param in the system dependent file descriptor
* @param length the total number of bytes allowed to be read
* @exception IOException If an I/O error has occurred.
*/
public LogInputStream(InputStream in, int length) throws IOException {
this.in = in;
this.length = length;
}
/**
* Reads a byte of data. This method will block if no input is
* available.
* @return the byte read, or -1 if the end of the log or end of the
* stream is reached.
* @exception IOException If an I/O error has occurred.
*/
public int read() throws IOException {
if (length == 0)
return -1;
int c = in.read();
length = (c != -1) ? length - 1 : 0;
return c;
}
/**
* Reads data into an array of bytes.
* This method blocks until some input is available.
* @param b the buffer into which the data is read
* @return the actual number of bytes read, or -1 if the end of the log
* or end of the stream is reached.
* @exception IOException If an I/O error has occurred.
*/
public int read(byte b[]) throws IOException {
return read(b, 0, b.length);
}
/**
* Reads data into an array of bytes.
* This method blocks until some input is available.
* @param b the buffer into which the data is read
* @param off the start offset of the data
* @param len the maximum number of bytes read
* @return the actual number of bytes read, or -1 if the end of the log or
* end of the stream is reached.
* @exception IOException If an I/O error has occurred.
*/
public int read(byte b[], int off, int len) throws IOException {
if (length == 0)
return -1;
len = (length < len) ? length : len;
int n = in.read(b, off, len);
length = (n != -1) ? length - n : 0;
return n;
}
/**
* Skips n bytes of input.
* @param n the number of bytes to be skipped
* @return the actual number of bytes skipped.
* @exception IOException If an I/O error has occurred.
*/
public long skip(long n) throws IOException {
if (n > Integer.MAX_VALUE)
throw new IOException("Too many bytes to skip - " + n);
if (length == 0)
return 0;
n = (length < n) ? length : n;
n = in.skip(n);
length -= n;
return n;
}
/**
* Returns the number of bytes that can be read without blocking.
* @return the number of available bytes, which is initially
* equal to the file size.
*/
public int available() throws IOException {
int avail = in.available();
return (length < avail) ? length : avail;
}
/**
* Closes the input stream. No further input can be read.
* the stream.
*/
public void close() {
length = 0;
}
/**
* Closes the stream when garbage is collected.
*/
@SuppressWarnings("deprecation")
protected void finalize() throws IOException {
close();
}
}
⏎ sun/rmi/log/LogInputStream.java
Or download all of them as a single archive file:
File name: java.rmi-11.0.1-src.zip File size: 275032 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.scripting.jmod - Scripting Module
2023-10-10, ≈71🔥, 1💬
Popular Posts:
JDK 11 java.smartcardio.jmod is the JMOD file for JDK 11 Smartcardio module. JDK 11 Smart Card IO mo...
What Is commons-logging-1.2.jar? commons-logging-1.2.jar is the JAR file for Apache Commons Logging ...
Apache Commons Lang 3 is the 3rd version of Apache Commons Lang, which provides a host of helper uti...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
What JAR files are required to run dom\Writer.java provided in the Apache Xerces package? 3 JAR file...