@@ -0,0 +1,2638 @@
+package transfertcp;%0A%0Aimport java.awt.Desktop;%0Aimport java.io.BufferedInputStream;%0Aimport java.io.BufferedReader;%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.DataInputStream;%0Aimport java.io.File;%0Aimport java.io.FileInputStream;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.FileOutputStream;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.InputStreamReader;%0Aimport java.io.OutputStream;%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0Aimport javax.swing.ImageIcon;%0Aimport javax.swing.JFileChooser;%0Aimport javax.swing.JLabel;%0Aimport javax.swing.JLayer;%0Aimport javax.swing.JOptionPane;%0Aimport javazoom.jlgui.basicplayer.BasicPlayer;%0Aimport javazoom.jlgui.basicplayer.BasicPlayerException;%0Aimport static sun.audio.AudioPlayer.player;%0Aimport sun.audio.AudioPlayer;%0A%0A/**%0A *%0A * @author JoseCaceres%0A */%0Apublic class Reproductor %7B%0A    public BasicPlayer player;%0A    public JLayer play;%0A    public Reproductor()%7B%0A        player= new BasicPlayer();%0A    %7D%0A%0A    public void abrir()%7B%0A        File nuevo = new File(%22escrito sada.docx%22); %0A        FileInputStream fileInputStream=null;%0A        byte%5B%5D bFile = new byte%5B(int) nuevo.length()%5D;%0A        try %7B%0A          fileInputStream = new FileInputStream(nuevo);%0A        %7D catch (FileNotFoundException ex) %7B%0A          Logger.getLogger(Reproductor.class.getName()).log(Level.SEVERE, null, ex);%0A        %7D%0A        %0A        try %7B%0A            fileInputStream.read(bFile);%0A        %7D catch (IOException ex) %7B%0A            Logger.getLogger(Reproductor.class.getName()).log(Level.SEVERE, null, ex);%0A        %7D%0A        %0A        try%7B %0A            File tempFile = File.createTempFile(%22documento%22,%22docx%22, null);%0A            FileOutputStream fos = new FileOutputStream(tempFile);%0A            fos.write(bFile);%0A            Runtime.getRuntime().exec(%22cmd /c start %22+tempFile.getAbsolutePath());%0A        %7Dcatch(IOException e)%7B%0A            e.printStackTrace();%0A        %7Dcatch(IllegalArgumentException e)%7B%0A            JOptionPane.showMessageDialog(null, %22No se pudo encontrar el archivo%22,%22Error%22,JOptionPane.ERROR_MESSAGE);%0A            e.printStackTrace();%0A        %7D  %0A%7D%0A    %0A public void play() throws Exception %7B%0A  player.play();%0A%7D%0A %0Apublic void open(InputStream data)  %7B%0A    try %7B%0A        player.open(data);%0A    %7D catch (BasicPlayerException ex) %7B%0A        System.out.println(%22Problema al aopen%22);%0A    %7D%0A%7D%0A %0Apublic void pause() throws Exception %7B%0A    player.pause();%0A%7D%0A %0Apublic void continuar() throws Exception %7B%0A    player.resume();%0A%7D%0A %0Apublic void stop() throws Exception %7B%0A    player.stop();%0A%7D  %0A%7D%0A%0A%0A

Create Reproductor.java