12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.media.sound;
27
28 import java.io.DataInputStream;
29 import java.io.IOException;
30 import java.io.InputStream;
31
32 import javax.sound.sampled.AudioFileFormat;
33 import javax.sound.sampled.AudioFileFormat.Type;
34 import javax.sound.sampled.AudioFormat;
35 import javax.sound.sampled.AudioSystem;
36 import javax.sound.sampled.UnsupportedAudioFileException;
37
38 /**
39 * AIFF file reader and writer.
40 *
41 * @author Kara Kytle
42 * @author Jan Borgersen
43 * @author Florian Bomers
44 */
45 public final class AiffFileReader extends SunFileReader {
46
47 @Override
48 StandardFileFormat getAudioFileFormatImpl(final InputStream stream)
49 throws UnsupportedAudioFileException, IOException {
50 DataInputStream dis = new DataInputStream(stream);
51
52 AudioFormat format = null;
|
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.media.sound;
27
28 import java.io.DataInputStream;
29 import java.io.IOException;
30 import java.io.InputStream;
31
32 import javax.sound.sampled.AudioFileFormat.Type;
33 import javax.sound.sampled.AudioFormat;
34 import javax.sound.sampled.AudioSystem;
35 import javax.sound.sampled.UnsupportedAudioFileException;
36
37 /**
38 * AIFF file reader and writer.
39 *
40 * @author Kara Kytle
41 * @author Jan Borgersen
42 * @author Florian Bomers
43 */
44 public final class AiffFileReader extends SunFileReader {
45
46 @Override
47 StandardFileFormat getAudioFileFormatImpl(final InputStream stream)
48 throws UnsupportedAudioFileException, IOException {
49 DataInputStream dis = new DataInputStream(stream);
50
51 AudioFormat format = null;
|