src/share/classes/javax/sound/sampled/spi/FormatConversionProvider.java

Print this page

        

*** 115,125 **** * Obtains the set of target format encodings supported by the format * converter given a particular source format. If no target format encodings * are supported for this source format, an array of length 0 is returned. * * @param sourceFormat format of the incoming data ! * @return array of supported target format encodings. */ public abstract Encoding[] getTargetEncodings(AudioFormat sourceFormat); /** * Indicates whether the format converter supports conversion to a --- 115,125 ---- * Obtains the set of target format encodings supported by the format * converter given a particular source format. If no target format encodings * are supported for this source format, an array of length 0 is returned. * * @param sourceFormat format of the incoming data ! * @return array of supported target format encodings */ public abstract Encoding[] getTargetEncodings(AudioFormat sourceFormat); /** * Indicates whether the format converter supports conversion to a
*** 148,158 **** * by the format converter If no target formats with the specified encoding * are supported for this source format, an array of length 0 is returned. * * @param targetEncoding desired encoding of the stream after processing * @param sourceFormat format of the incoming data ! * @return array of supported target formats. */ public abstract AudioFormat[] getTargetFormats(Encoding targetEncoding, AudioFormat sourceFormat); /** --- 148,158 ---- * by the format converter If no target formats with the specified encoding * are supported for this source format, an array of length 0 is returned. * * @param targetEncoding desired encoding of the stream after processing * @param sourceFormat format of the incoming data ! * @return array of supported target formats */ public abstract AudioFormat[] getTargetFormats(Encoding targetEncoding, AudioFormat sourceFormat); /**
*** 185,195 **** * @param sourceStream stream from which data to be processed should be * read * @return stream from which processed data with the specified target * encoding may be read * @throws IllegalArgumentException if the format combination supplied is ! * not supported. */ public abstract AudioInputStream getAudioInputStream( Encoding targetEncoding, AudioInputStream sourceStream); /** --- 185,195 ---- * @param sourceStream stream from which data to be processed should be * read * @return stream from which processed data with the specified target * encoding may be read * @throws IllegalArgumentException if the format combination supplied is ! * not supported */ public abstract AudioInputStream getAudioInputStream( Encoding targetEncoding, AudioInputStream sourceStream); /**
*** 200,209 **** * @param sourceStream stream from which data to be processed should be * read * @return stream from which processed data with the specified format may be * read * @throws IllegalArgumentException if the format combination supplied is ! * not supported. */ public abstract AudioInputStream getAudioInputStream( AudioFormat targetFormat, AudioInputStream sourceStream); } --- 200,209 ---- * @param sourceStream stream from which data to be processed should be * read * @return stream from which processed data with the specified format may be * read * @throws IllegalArgumentException if the format combination supplied is ! * not supported */ public abstract AudioInputStream getAudioInputStream( AudioFormat targetFormat, AudioInputStream sourceStream); }