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.desktop.jmod - Desktop Module
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module.
JDK 11 Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.desktop.jmod.
JDK 11 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Desktop module source code files are stored in \fyicenter\jdk-11.0.1\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, 2016, 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; // we don't support these ... /* case AuFileFormat.AU_DOUBLE: encoding = new AudioFormat.DOUBLE; sampleSizeInBits = 8; break; 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-11.0.1-src.zip File size: 7974380 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.instrument.jmod - Instrument Module
2022-08-06, 193110👍, 5💬
Popular Posts:
How to download and install JDK (Java Development Kit) 5? If you want to write Java applications, yo...
What Is commons-lang3-3.1.jar? commons-lang3-3.1.jar is the JAR file for Apache Commons Lang 3.1, wh...
JDK 11 jdk.crypto.mscapi.jmod is the JMOD file for JDK 11 Crypto MSCAPI module. JDK 11 Crypto MSCAPI...
Guava is a suite of core and expanded libraries that include utility classes, google's collections, ...
Rhino JavaScript Java Library is an open-source implementation of JavaScript written entirely in Jav...