9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
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 javax.sound.sampled.spi;
27
28 import java.io.File;
29 import java.io.InputStream;
30 import java.io.IOException;
31 import java.net.URL;
32
33 import javax.sound.sampled.AudioFileFormat;
34 import javax.sound.sampled.AudioInputStream;
35 import javax.sound.sampled.UnsupportedAudioFileException;
36
37 /**
38 * Provider for audio file reading services. Classes providing concrete
39 * implementations can parse the format information from one or more types of
40 * audio file, and can produce audio input streams from files of these types.
41 *
42 * @author Kara Kytle
43 * @since 1.3
44 */
45 public abstract class AudioFileReader {
46
47 /**
48 * Obtains the audio file format of the input stream provided. The stream
49 * must point to valid audio file data. In general, audio file readers may
50 * need to read some data from the stream before determining whether they
|
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
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 javax.sound.sampled.spi;
27
28 import java.io.File;
29 import java.io.IOException;
30 import java.io.InputStream;
31 import java.net.URL;
32
33 import javax.sound.sampled.AudioFileFormat;
34 import javax.sound.sampled.AudioInputStream;
35 import javax.sound.sampled.UnsupportedAudioFileException;
36
37 /**
38 * Provider for audio file reading services. Classes providing concrete
39 * implementations can parse the format information from one or more types of
40 * audio file, and can produce audio input streams from files of these types.
41 *
42 * @author Kara Kytle
43 * @since 1.3
44 */
45 public abstract class AudioFileReader {
46
47 /**
48 * Obtains the audio file format of the input stream provided. The stream
49 * must point to valid audio file data. In general, audio file readers may
50 * need to read some data from the stream before determining whether they
|