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 17 java.desktop.jmod - Desktop Module
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module.
JDK 17 Desktop module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.desktop.jmod.
JDK 17 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Desktop module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/media/sound/SunFileWriter.java
/* * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.media.sound; import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; import javax.sound.sampled.AudioFileFormat; import javax.sound.sampled.spi.AudioFileWriter; /** * Abstract File Writer class. * * @author Jan Borgersen */ abstract class SunFileWriter extends AudioFileWriter { // buffer size for write protected static final int bufferSize = 16384; // buffer size for temporary input streams protected static final int bisBufferSize = 4096; final AudioFileFormat.Type[] types; /** * Constructs a new SunParser object. */ SunFileWriter(AudioFileFormat.Type[] types) { this.types = types; } // METHODS TO IMPLEMENT AudioFileWriter @Override public final AudioFileFormat.Type[] getAudioFileTypes(){ AudioFileFormat.Type[] localArray = new AudioFileFormat.Type[types.length]; System.arraycopy(types, 0, localArray, 0, types.length); return localArray; } // HELPER METHODS /** * rllong * Protected helper method to read 64 bits and changing the order of * each bytes. * @return 32 bits swapped value. * @exception IOException */ final int rllong(DataInputStream dis) throws IOException { int b1, b2, b3, b4 ; int i = 0; i = dis.readInt(); b1 = ( i & 0xFF ) << 24 ; b2 = ( i & 0xFF00 ) << 8; b3 = ( i & 0xFF0000 ) >> 8; b4 = ( i & 0xFF000000 ) >>> 24; i = ( b1 | b2 | b3 | b4 ); return i; } /** * big2little * Protected helper method to swap the order of bytes in a 32 bit int * @return 32 bits swapped value */ final int big2little(int i) { int b1, b2, b3, b4 ; b1 = ( i & 0xFF ) << 24 ; b2 = ( i & 0xFF00 ) << 8; b3 = ( i & 0xFF0000 ) >> 8; b4 = ( i & 0xFF000000 ) >>> 24; i = ( b1 | b2 | b3 | b4 ); return i; } /** * rlshort * Protected helper method to read 16 bits value. Swap high with low byte. * @return the swapped value. * @exception IOException */ final short rlshort(DataInputStream dis) throws IOException { short s=0; short high, low; s = dis.readShort(); high = (short)(( s & 0xFF ) << 8) ; low = (short)(( s & 0xFF00 ) >>> 8); s = (short)( high | low ); return s; } /** * big2little * Protected helper method to swap the order of bytes in a 16 bit short * @return 16 bits swapped value */ final short big2littleShort(short i) { short high, low; high = (short)(( i & 0xFF ) << 8) ; low = (short)(( i & 0xFF00 ) >>> 8); i = (short)( high | low ); return i; } /** * InputStream wrapper class which prevent source stream from being closed. * The class is usefull for use with SequenceInputStream to prevent * closing of the source input streams. */ final class NoCloseInputStream extends InputStream { private final InputStream in; NoCloseInputStream(InputStream in) { this.in = in; } @Override public int read() throws IOException { return in.read(); } @Override public int read(byte[] b) throws IOException { return in.read(b); } @Override public int read(byte[] b, int off, int len) throws IOException { return in.read(b, off, len); } @Override public long skip(long n) throws IOException { return in.skip(n); } @Override public int available() throws IOException { return in.available(); } @Override public void close() throws IOException { // don't propagate the call } @Override public void mark(int readlimit) { in.mark(readlimit); } @Override public void reset() throws IOException { in.reset(); } @Override public boolean markSupported() { return in.markSupported(); } } }
⏎ com/sun/media/sound/SunFileWriter.java
Or download all of them as a single archive file:
File name: java.desktop-17.0.5-src.zip File size: 9152233 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.instrument.jmod - Instrument Module
2023-09-16, 33981👍, 0💬
Popular Posts:
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes: "C:\fyicenter\jdk-...
maven-core-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Core module. Apache Maven is a software ...
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes: "C:\fyicenter\jdk-...
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module. JDK 11 Hotspot Agent...
Apache Log4j SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implemen...