@@ -0,0 +1,801 @@
+package Utils;%0A%0Aimport java.io.IOException;%0A%0Aimport javax.sound.sampled.AudioFormat;%0Aimport javax.sound.sampled.AudioInputStream;%0Aimport javax.sound.sampled.AudioSystem;%0Aimport javax.sound.sampled.Clip;%0Aimport javax.sound.sampled.DataLine;%0Aimport javax.sound.sampled.LineUnavailableException;%0A%0Apublic class Player %7B%0A%09public static void playStream(AudioInputStream inputStream) %7B%0A%09%09AudioFormat format = inputStream.getFormat();%0A%09%09DataLine.Info info = new DataLine.Info(Clip.class, format);%0A%09%09Clip clip;%0A%0A%09%09try %7B%0A%09%09%09clip = (Clip) AudioSystem.getLine(info);%0A%09%09%09clip.open(inputStream);%0A%09%09%09clip.start();%0A%09%09%7D catch (LineUnavailableException e) %7B%0A%09%09%09// TODO Auto-generated catch block%0A%09%09%09e.printStackTrace();%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09// TODO Auto-generated catch block%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add utility class for playing streams