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.rmic.jmod - RMI Compiler Tool
JDK 11 jdk.rmic.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) Compiler Tool tool, which can be invoked by the "rmic" command.
JDK 11 RMI Compiler Tool tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.rmic.jmod.
JDK 11 RMI Compiler Tool tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 RMI Compiler Tool tool source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.rmic.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/rmi/rmic/IndentingWriter.java
/* * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ /*****************************************************************************/ /* Copyright (c) IBM Corporation 1998 */ /* */ /* (C) Copyright IBM Corp. 1998 */ /* */ /*****************************************************************************/ package sun.rmi.rmic; import java.io.Writer; import java.io.BufferedWriter; import java.io.IOException; /** * IndentingWriter is a BufferedWriter subclass that supports automatic * indentation of lines of text written to the underlying Writer. * * Methods are provided for compact, convenient indenting, writing text, * and writing lines in various combinations. * * WARNING: The contents of this source file are not part of any * supported API. Code that depends on them does so at its own risk: * they are subject to change or removal without notice. */ public class IndentingWriter extends BufferedWriter { /** true if the next character written is the first on a line */ private boolean beginningOfLine = true; /** current number of spaces to prepend to lines */ private int currentIndent = 0; /** number of spaces to change indent when indenting in or out */ private int indentStep = 4; /** number of spaces to convert into tabs. Use MAX_VALUE to disable */ private int tabSize = 8; /** * Create a new IndentingWriter that writes indented text to the * given Writer. Use the default indent step of four spaces. */ public IndentingWriter(Writer out) { super(out); } /** * Create a new IndentingWriter that writes indented text to the * given Writer and uses the supplied indent step. */ public IndentingWriter(Writer out, int step) { this(out); if (indentStep < 0) throw new IllegalArgumentException("negative indent step"); indentStep = step; } /** * Create a new IndentingWriter that writes indented text to the * given Writer and uses the supplied indent step and tab size. */ public IndentingWriter(Writer out, int step, int tabSize) { this(out); if (indentStep < 0) throw new IllegalArgumentException("negative indent step"); indentStep = step; this.tabSize = tabSize; } /** * Write a single character. */ public void write(int c) throws IOException { checkWrite(); super.write(c); } /** * Write a portion of an array of characters. */ public void write(char[] cbuf, int off, int len) throws IOException { if (len > 0) { checkWrite(); } super.write(cbuf, off, len); } /** * Write a portion of a String. */ public void write(String s, int off, int len) throws IOException { if (len > 0) { checkWrite(); } super.write(s, off, len); } /** * Write a line separator. The next character written will be * preceded by an indent. */ public void newLine() throws IOException { super.newLine(); beginningOfLine = true; } /** * Check if an indent needs to be written before writing the next * character. * * The indent generation is optimized (and made consistent with * certain coding conventions) by condensing groups of eight spaces * into tab characters. */ protected void checkWrite() throws IOException { if (beginningOfLine) { beginningOfLine = false; int i = currentIndent; while (i >= tabSize) { super.write('\t'); i -= tabSize; } while (i > 0) { super.write(' '); -- i; } } } /** * Increase the current indent by the indent step. */ protected void indentIn() { currentIndent += indentStep; } /** * Decrease the current indent by the indent step. */ protected void indentOut() { currentIndent -= indentStep; if (currentIndent < 0) currentIndent = 0; } /** * Indent in. */ public void pI() { indentIn(); } /** * Indent out. */ public void pO() { indentOut(); } /** * Write string. */ public void p(String s) throws IOException { write(s); } /** * End current line. */ public void pln() throws IOException { newLine(); } /** * Write string; end current line. */ public void pln(String s) throws IOException { p(s); pln(); } /** * Write string; end current line; indent in. */ public void plnI(String s) throws IOException { p(s); pln(); pI(); } /** * Indent out; write string. */ public void pO(String s) throws IOException { pO(); p(s); } /** * Indent out; write string; end current line. */ public void pOln(String s) throws IOException { pO(s); pln(); } /** * Indent out; write string; end current line; indent in. * * This method is useful for generating lines of code that both * end and begin nested blocks, like "} else {". */ public void pOlnI(String s) throws IOException { pO(s); pln(); pI(); } /** * Write Object. */ public void p(Object o) throws IOException { write(o.toString()); } /** * Write Object; end current line. */ public void pln(Object o) throws IOException { p(o.toString()); pln(); } /** * Write Object; end current line; indent in. */ public void plnI(Object o) throws IOException { p(o.toString()); pln(); pI(); } /** * Indent out; write Object. */ public void pO(Object o) throws IOException { pO(); p(o.toString()); } /** * Indent out; write Object; end current line. */ public void pOln(Object o) throws IOException { pO(o.toString()); pln(); } /** * Indent out; write Object; end current line; indent in. * * This method is useful for generating lines of code that both * end and begin nested blocks, like "} else {". */ public void pOlnI(Object o) throws IOException { pO(o.toString()); pln(); pI(); } }
⏎ sun/rmi/rmic/IndentingWriter.java
Or download all of them as a single archive file:
File name: jdk.rmic-11.0.1-src.zip File size: 418901 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.scripting.nashorn.jmod - Scripting Nashorn Module
2020-04-25, 49850👍, 0💬
Popular Posts:
JDK 11 jdk.internal.vm.compiler .jmodis the JMOD file for JDK 11 Internal VM Compiler module. JDK 11...
What Is poi-ooxml-5.2.3.jar? poi-ooxml-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which...
Apache BCEL Source Code Files are inside the Apache BCEL source package file like bcel-6.5.0-src.zip...
What Is jsse.jar (JDK 6) Java Secure Socket Extension? jsse.jar, Java Secure Socket Extension, is Ja...
Apache Log4j Core Implementation provides the functional components of the logging system. Users are...