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/AuFileReader.java
/* * Copyright (c) 1999, 2019, 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.Type; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.UnsupportedAudioFileException; /** * AU file reader. * * @author Kara Kytle * @author Jan Borgersen * @author Florian Bomers */ public final class AuFileReader extends SunFileReader { @Override StandardFileFormat getAudioFileFormatImpl(final InputStream stream) throws UnsupportedAudioFileException, IOException { final DataInputStream dis = new DataInputStream(stream); final int magic = dis.readInt(); if (magic != AuFileFormat.AU_SUN_MAGIC) { // not AU, throw exception throw new UnsupportedAudioFileException("not an AU file"); } final int headerSize = dis.readInt(); if (headerSize < AuFileFormat.AU_HEADERSIZE) { throw new UnsupportedAudioFileException("Invalid header size"); } final long /* unsigned int */ dataSize = dis.readInt() & 0xffffffffL; final int auType = dis.readInt(); final int sampleRate = dis.readInt(); if (sampleRate <= 0) { throw new UnsupportedAudioFileException("Invalid sample rate"); } final int channels = dis.readInt(); if (channels <= 0) { throw new UnsupportedAudioFileException("Invalid number of channels"); } final int sampleSizeInBits; final AudioFormat.Encoding encoding; switch (auType) { case AuFileFormat.AU_ULAW_8: encoding = AudioFormat.Encoding.ULAW; sampleSizeInBits = 8; break; case AuFileFormat.AU_ALAW_8: encoding = AudioFormat.Encoding.ALAW; sampleSizeInBits = 8; break; case AuFileFormat.AU_LINEAR_8: // $$jb: 04.29.99: 8bit linear is *signed*, not *unsigned* encoding = AudioFormat.Encoding.PCM_SIGNED; sampleSizeInBits = 8; break; case AuFileFormat.AU_LINEAR_16: encoding = AudioFormat.Encoding.PCM_SIGNED; sampleSizeInBits = 16; break; case AuFileFormat.AU_LINEAR_24: encoding = AudioFormat.Encoding.PCM_SIGNED; sampleSizeInBits = 24; break; case AuFileFormat.AU_LINEAR_32: encoding = AudioFormat.Encoding.PCM_SIGNED; sampleSizeInBits = 32; break; case AuFileFormat.AU_FLOAT: encoding = AudioFormat.Encoding.PCM_FLOAT; sampleSizeInBits = 32; break; case AuFileFormat.AU_DOUBLE: encoding = AudioFormat.Encoding.PCM_FLOAT; sampleSizeInBits = 64; break; // we don't support these ... /* case AuFileFormat.AU_ADPCM_G721: encoding = new AudioFormat.G721_ADPCM; sampleSizeInBits = 16; break; case AuFileFormat.AU_ADPCM_G723_3: encoding = new AudioFormat.G723_3; sampleSize = 24; SamplePerUnit = 8; break; case AuFileFormat.AU_ADPCM_G723_5: encoding = new AudioFormat.G723_5; sampleSize = 40; SamplePerUnit = 8; break; */ default: // unsupported filetype, throw exception throw new UnsupportedAudioFileException("not a valid AU file"); } // Skip the variable-length annotation field. The content of this field // is currently undefined by AU specification and is unsupported by // JavaSound, so seek past the header dis.skipBytes(headerSize - AuFileFormat.AU_HEADERSIZE); // Even if the sampleSizeInBits and channels are supported we can get an // unsupported frameSize because of overflow final int frameSize = calculatePCMFrameSize(sampleSizeInBits, channels); if (frameSize <= 0) { throw new UnsupportedAudioFileException("Invalid frame size"); } //$$fb 2002-11-02: fix for 4629669: AU file reader: problems with empty files //$$fb 2003-10-20: fix for 4940459: AudioInputStream.getFrameLength() returns 0 instead of NOT_SPECIFIED long frameLength = AudioSystem.NOT_SPECIFIED; long byteLength = AudioSystem.NOT_SPECIFIED; if (dataSize != AuFileFormat.UNKNOWN_SIZE) { frameLength = dataSize / frameSize; byteLength = dataSize + headerSize; } final AudioFormat format = new AudioFormat(encoding, sampleRate, sampleSizeInBits, channels, frameSize, sampleRate, true); return new AuFileFormat(Type.AU, byteLength, format, frameLength); } }
⏎ com/sun/media/sound/AuFileReader.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, 65746👍, 0💬
Popular Posts:
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
JDK 11 jdk.internal.le.jmod is the JMOD file for JDK 11 Internal Line Editing module. JDK 11 Interna...
Where to find answers to frequently asked questions on Downloading and Installing Connector/J - JDBC...
JDK 8 jconsole.jar is the JAR file for JDK 8 JConsole, which is a graphical monitoring tool to monit...
The Jakarta-ORO Java classes are a set of text-processing Java classes that provide Perl5 compatible...