diff options
Diffstat (limited to 'libjava/classpath/javax/sound/sampled/spi')
3 files changed, 22 insertions, 22 deletions
diff --git a/libjava/classpath/javax/sound/sampled/spi/AudioFileReader.java b/libjava/classpath/javax/sound/sampled/spi/AudioFileReader.java index 6df4cc2..098190f 100644 --- a/libjava/classpath/javax/sound/sampled/spi/AudioFileReader.java +++ b/libjava/classpath/javax/sound/sampled/spi/AudioFileReader.java @@ -51,7 +51,7 @@ import javax.sound.sampled.UnsupportedAudioFileException; * This abstract class defines the interface to audio file readers. * A concrete provider subclass will implement the methods declared * here. These methods can be used to determine the format of - * files, and to retrieve an AudioInputStream for a file. + * files, and to retrieve an AudioInputStream for a file. * @since 1.3 */ public abstract class AudioFileReader @@ -110,36 +110,36 @@ public abstract class AudioFileReader /** * Return an AudioInputStream for the given file. The file is assumed - * to hold valid audio data. + * to hold valid audio data. * @param file the file to read * @return an AudioInputStream for the file * @throws UnsupportedAudioFileException if the file's type is not * recognized - * @throws IOException if there is an error while reading the file + * @throws IOException if there is an error while reading the file */ public abstract AudioInputStream getAudioInputStream(File file) throws UnsupportedAudioFileException, IOException; /** * Return an AudioInputStream wrapping the given input stream. The stream - * is assumed to hold valid audio data. + * is assumed to hold valid audio data. * @param is the input stream to wrap * @return an AudioInputStream for the stream * @throws UnsupportedAudioFileException if the stream's type is not * recognized - * @throws IOException if there is an error while reading the stream + * @throws IOException if there is an error while reading the stream */ public abstract AudioInputStream getAudioInputStream(InputStream is) throws UnsupportedAudioFileException, IOException; /** * Return an AudioInputStream for the given URL. The URL is assumed - * to hold valid audio data. + * to hold valid audio data. * @param url the URL to read * @return an AudioInputStream for the URL * @throws UnsupportedAudioFileException if the URL's type is not * recognized - * @throws IOException if there is an error while reading the URL + * @throws IOException if there is an error while reading the URL */ public abstract AudioInputStream getAudioInputStream(URL url) throws UnsupportedAudioFileException, IOException; diff --git a/libjava/classpath/javax/sound/sampled/spi/AudioFileWriter.java b/libjava/classpath/javax/sound/sampled/spi/AudioFileWriter.java index 955bb05..82f9b31 100644 --- a/libjava/classpath/javax/sound/sampled/spi/AudioFileWriter.java +++ b/libjava/classpath/javax/sound/sampled/spi/AudioFileWriter.java @@ -94,7 +94,7 @@ public abstract class AudioFileWriter * @param ais the audio input stream to write */ public boolean isFileTypeSupported(AudioFileFormat.Type type, - AudioInputStream ais) + AudioInputStream ais) { AudioFileFormat.Type[] types = getAudioFileTypes(ais); for (int i = 0; i < types.length; ++i) @@ -114,7 +114,7 @@ public abstract class AudioFileWriter * @throws IOException if an I/O error occurs when writing */ public abstract int write(AudioInputStream ais, AudioFileFormat.Type type, - File out) + File out) throws IOException; /** @@ -126,6 +126,6 @@ public abstract class AudioFileWriter * @throws IOException if an I/O error occurs when writing */ public abstract int write(AudioInputStream ais, AudioFileFormat.Type type, - OutputStream os) + OutputStream os) throws IOException; } diff --git a/libjava/classpath/javax/sound/sampled/spi/FormatConversionProvider.java b/libjava/classpath/javax/sound/sampled/spi/FormatConversionProvider.java index e96cc04..b9d3e9d 100644 --- a/libjava/classpath/javax/sound/sampled/spi/FormatConversionProvider.java +++ b/libjava/classpath/javax/sound/sampled/spi/FormatConversionProvider.java @@ -42,7 +42,7 @@ import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; /** - * A format conversion provider supplies methods for converting between + * A format conversion provider supplies methods for converting between * different audio formats. This abstract class defines the interface * to this functionality; concrete subclasses will implement the methods * declared here. @@ -67,7 +67,7 @@ public abstract class FormatConversionProvider * @throws IllegalArgumentException if the conversion is not supported */ public abstract AudioInputStream getAudioInputStream(AudioFormat.Encoding encoding, - AudioInputStream source); + AudioInputStream source); /** * Return an audio input stream given the desired target format and @@ -79,7 +79,7 @@ public abstract class FormatConversionProvider * @throws IllegalArgumentException if the conversion is not supported */ public abstract AudioInputStream getAudioInputStream(AudioFormat format, - AudioInputStream source); + AudioInputStream source); /** * Return an array of all the source encodings supported by this conversion @@ -109,7 +109,7 @@ public abstract class FormatConversionProvider * @return an array of supported target formats */ public abstract AudioFormat[] getTargetFormats(AudioFormat.Encoding targ, - AudioFormat src); + AudioFormat src); /** * Return true if this provider supports conversion from the given @@ -119,13 +119,13 @@ public abstract class FormatConversionProvider * @return true if the conversion is supported */ public boolean isConversionSupported(AudioFormat.Encoding targ, - AudioFormat src) + AudioFormat src) { AudioFormat.Encoding[] encodings = getTargetEncodings(src); for (int i = 0; i < encodings.length; ++i) { - if (targ.equals(encodings[i])) - return true; + if (targ.equals(encodings[i])) + return true; } return false; } @@ -154,14 +154,14 @@ public abstract class FormatConversionProvider AudioFormat.Encoding[] srcs = getSourceEncodings(); for (int i = 0; i < srcs.length; ++i) { - if (src.equals(srcs[i])) - return true; + if (src.equals(srcs[i])) + return true; } return false; } /** - * Return true if an encoding matching the argument is supported as a + * Return true if an encoding matching the argument is supported as a * target encoding by this provider. * @param targ the target encoding * @return true if it is supported @@ -171,8 +171,8 @@ public abstract class FormatConversionProvider AudioFormat.Encoding[] encodings = getTargetEncodings(); for (int i = 0; i < encodings.length; ++i) { - if (targ.equals(encodings[i])) - return true; + if (targ.equals(encodings[i])) + return true; } return false; } |