summaryrefslogtreecommitdiff
path: root/libjava/classpath/javax/sound/midi/spi
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/javax/sound/midi/spi')
-rw-r--r--libjava/classpath/javax/sound/midi/spi/MidiDeviceProvider.java18
-rw-r--r--libjava/classpath/javax/sound/midi/spi/MidiFileReader.java28
-rw-r--r--libjava/classpath/javax/sound/midi/spi/MidiFileWriter.java28
-rw-r--r--libjava/classpath/javax/sound/midi/spi/SoundbankReader.java24
4 files changed, 49 insertions, 49 deletions
diff --git a/libjava/classpath/javax/sound/midi/spi/MidiDeviceProvider.java b/libjava/classpath/javax/sound/midi/spi/MidiDeviceProvider.java
index 537edb2b3d0..7119ec4a232 100644
--- a/libjava/classpath/javax/sound/midi/spi/MidiDeviceProvider.java
+++ b/libjava/classpath/javax/sound/midi/spi/MidiDeviceProvider.java
@@ -42,7 +42,7 @@ import javax.sound.midi.*;
/**
* The abstract base class for all MidiDeviceProvider types.
- *
+ *
* @author Anthony Green (green@redhat.com)
* @since 1.3
*
@@ -51,36 +51,36 @@ public abstract class MidiDeviceProvider
{
/**
* Returns true if this provider supports a specific MIDI device.
- *
+ *
* @param info the MIDI device descriptor
* @return true if this provider supports info
*/
public boolean isDeviceSupported(MidiDevice.Info info)
{
MidiDevice.Info infos[] = getDeviceInfo();
-
+
int i = infos.length;
-
+
while (i > 0)
{
if (info.equals(infos[--i]))
return true;
}
-
+
return false;
}
-
+
/**
* Get the list descriptors for all MIDI devices supported by
* this provider.
- *
+ *
* @return an array of descriptors for all supported MIDI devices.
*/
public abstract MidiDevice.Info[] getDeviceInfo();
-
+
/**
* Get the MidiDevice for the MIDI device described by info
- *
+ *
* @param info the descriptor for the MIDI device we want
* @return the MidiDevice we're looking for
* @throws IllegalArgumentException is this provider doesn't support info
diff --git a/libjava/classpath/javax/sound/midi/spi/MidiFileReader.java b/libjava/classpath/javax/sound/midi/spi/MidiFileReader.java
index 4342ebf5e2b..d370a8a448b 100644
--- a/libjava/classpath/javax/sound/midi/spi/MidiFileReader.java
+++ b/libjava/classpath/javax/sound/midi/spi/MidiFileReader.java
@@ -50,7 +50,7 @@ import javax.sound.midi.Sequence;
/**
* The MidiFileReader abstract class defines the methods to be provided
* by a MIDI file reader.
- *
+ *
* @author Anthony Green (green@redhat.com)
* @since 1.3
*
@@ -59,7 +59,7 @@ public abstract class MidiFileReader
{
/**
* Read a MidiFileFormat from the given stream.
- *
+ *
* @param stream the stream from which to read the MIDI data
* @return the MidiFileFormat object
* @throws InvalidMidiDataException if the stream refers to invalid data
@@ -67,32 +67,32 @@ public abstract class MidiFileReader
*/
public abstract MidiFileFormat getMidiFileFormat(InputStream stream)
throws InvalidMidiDataException, IOException;
-
+
/**
* Read a MidiFileFormat from the given stream.
- *
+ *
* @param url the url from which to read the MIDI data
* @return the MidiFileFormat object
* @throws InvalidMidiDataException if the url refers to invalid data
* @throws IOException if an I/O exception occurs while reading
*/
public abstract MidiFileFormat getMidiFileFormat(URL url)
- throws InvalidMidiDataException, IOException;
+ throws InvalidMidiDataException, IOException;
/**
* Read a MidiFileFormat from the given stream.
- *
+ *
* @param file the file from which to read the MIDI data
* @return the MidiFileFormat object
* @throws InvalidMidiDataException if the file refers to invalid data
* @throws IOException if an I/O exception occurs while reading
*/
public abstract MidiFileFormat getMidiFileFormat(File file)
- throws InvalidMidiDataException, IOException;
-
+ throws InvalidMidiDataException, IOException;
+
/**
* Read a Sequence from the given stream.
- *
+ *
* @param stream the stream from which to read the MIDI data
* @return the Sequence object
* @throws InvalidMidiDataException if the stream refers to invalid data
@@ -100,26 +100,26 @@ public abstract class MidiFileReader
*/
public abstract Sequence getSequence(InputStream stream)
throws InvalidMidiDataException, IOException;
-
+
/**
* Read a Sequence from the given stream.
- *
+ *
* @param url the url from which to read the MIDI data
* @return the Sequence object
* @throws InvalidMidiDataException if the url refers to invalid data
* @throws IOException if an I/O exception occurs while reading
*/
public abstract Sequence getSequence(URL url)
- throws InvalidMidiDataException, IOException;
+ throws InvalidMidiDataException, IOException;
/**
* Read a Sequence from the given stream.
- *
+ *
* @param file the file from which to read the MIDI data
* @return the Sequence object
* @throws InvalidMidiDataException if the file refers to invalid data
* @throws IOException if an I/O exception occurs while reading
*/
public abstract Sequence getSequence(File file)
- throws InvalidMidiDataException, IOException;
+ throws InvalidMidiDataException, IOException;
}
diff --git a/libjava/classpath/javax/sound/midi/spi/MidiFileWriter.java b/libjava/classpath/javax/sound/midi/spi/MidiFileWriter.java
index e2a1f55c6e0..08aee36f0b5 100644
--- a/libjava/classpath/javax/sound/midi/spi/MidiFileWriter.java
+++ b/libjava/classpath/javax/sound/midi/spi/MidiFileWriter.java
@@ -45,20 +45,20 @@ import java.io.OutputStream;
import javax.sound.midi.Sequence;
/**
- * MidiFileWriter provides MIDI file writing services.
- *
- * There are three types of Standard MIDI File (SMF) formats,
+ * MidiFileWriter provides MIDI file writing services.
+ *
+ * There are three types of Standard MIDI File (SMF) formats,
* represented by integers 0, 1, and 2.
- *
+ *
* Type 0 files contain a single track and represents a single song
* performance.
* Type 1 may contain multiple tracks for a single song performance.
* Type 2 may contain multiple tracks, each representing a
* separate song performance.
- *
+ *
* See http://en.wikipedia.org/wiki/MIDI#MIDI_file_formats for more
* information.
- *
+ *
* @author Anthony Green (green@redhat.com)
* @since 1.3
*
@@ -67,23 +67,23 @@ public abstract class MidiFileWriter
{
/**
* Return the MIDI file types supported by this writer.
- *
+ *
* @return the MIDI file types, or an empty array
*/
public abstract int[] getMidiFileTypes();
-
+
/**
* Return the MIDI file types supported by this writer for the
* given sequence.
- *
+ *
* @param sequence the sequence we'd like to write
* @return the MIDI file types, or an empty array
*/
public abstract int[] getMidiFileTypes(Sequence sequence);
-
+
/**
* Returns true if this writer supports the given file type.
- *
+ *
* @param fileType the file type we're asking about
* @return true if this writer supports fileType, false otherwise
*/
@@ -101,7 +101,7 @@ public abstract class MidiFileWriter
/**
* Returns true if this writer supports the given file type for the
* given sequence.
- *
+ *
* @param fileType the file type we're asking about
* @param sequence the sequence we'd like to write
* @return true if this writer supports fileType, false otherwise
@@ -119,7 +119,7 @@ public abstract class MidiFileWriter
/**
* Write a sequence to a stream using the specified MIDI file type.
- *
+ *
* @param in the sequence to write
* @param fileType the MIDI file type to use
* @param out the output stream to write to
@@ -131,7 +131,7 @@ public abstract class MidiFileWriter
/**
* Write a sequence to a file using the specified MIDI file type.
- *
+ *
* @param in the sequence to write
* @param fileType the MIDI file type to use
* @param out the file to write to
diff --git a/libjava/classpath/javax/sound/midi/spi/SoundbankReader.java b/libjava/classpath/javax/sound/midi/spi/SoundbankReader.java
index dbf2bb0183a..948d54fd14b 100644
--- a/libjava/classpath/javax/sound/midi/spi/SoundbankReader.java
+++ b/libjava/classpath/javax/sound/midi/spi/SoundbankReader.java
@@ -49,7 +49,7 @@ import javax.sound.midi.Soundbank;
/**
* The SoundbankReader abstract class defines the methods to be provided
* by a soundbank file reader.
- *
+ *
* @author Anthony Green (green@redhat.com)
* @since 1.3
*
@@ -58,37 +58,37 @@ public abstract class SoundbankReader
{
/**
* Get a Soundbank from the given URL.
- *
+ *
* @param url from which to read the Soundbank
- *
+ *
* @return the Soundbank object
- *
+ *
* @throws InvalidMidiDataException if the data provided by url cannot be recognized
* @throws IOException if the data provided by url cannot be read
*/
public abstract Soundbank getSoundbank(URL url)
throws InvalidMidiDataException, IOException;
-
+
/**
* Get a Soundbank from the given InputStream.
- *
+ *
* @param stream from which to read the Soundbank
- *
+ *
* @return the Soundbank object
- *
+ *
* @throws InvalidMidiDataException if the data provided by InputStream cannot be recognized
* @throws IOException if the data provided by InputStream cannot be read
*/
public abstract Soundbank getSoundbank(InputStream stream)
throws InvalidMidiDataException, IOException;
-
+
/**
* Get a Soundbank from the given File.
- *
+ *
* @param file from which to read the Soundbank
- *
+ *
* @return the Soundbank object
- *
+ *
* @throws InvalidMidiDataException if the data provided by File cannot be recognized
* @throws IOException if the data provided by File cannot be read
*/