Lines Matching refs:sourceStream
856 * @param sourceStream the stream to be converted
865 AudioInputStream sourceStream) {
871 if( codec.isConversionSupported( targetEncoding, sourceStream.getFormat() ) ) {
872 return codec.getAudioInputStream( targetEncoding, sourceStream );
876 throw new IllegalArgumentException("Unsupported conversion: " + targetEncoding + " from " + sourceStream.getFormat());
947 * @param sourceStream the stream to be converted
956 AudioInputStream sourceStream) {
958 if (sourceStream.getFormat().matches(targetFormat)) {
959 return sourceStream;
966 if(codec.isConversionSupported(targetFormat,sourceStream.getFormat()) ) {
967 return codec.getAudioInputStream(targetFormat,sourceStream);
972 throw new IllegalArgumentException("Unsupported conversion: " + targetFormat + " from " + sourceStream.getFormat());