PageRenderTime 16ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Prototipo/Broker_v2/src/broker/tools/FilePrinter.java

http://prototipomemoria.googlecode.com/
Java | 33 lines | 28 code | 5 blank | 0 comment | 2 complexity | b7fd13d62ffe07356bf1cd0d66c2afc2 MD5 | raw file
 1package broker.tools;
 2
 3import java.io.BufferedWriter;
 4import java.io.IOException;
 5
 6import de.schlichtherle.io.FileWriter;
 7
 8public class FilePrinter {
 9
10	public static void imprimirSalida(String resultado, String fileName){
11		BufferedWriter writer = null;
12        try
13        {
14                writer = new BufferedWriter(new FileWriter(fileName));
15                writer.write(resultado);
16
17        }
18        catch ( IOException e)
19        {
20        }
21        finally
22        {
23                try
24                {
25                        if ( writer != null)
26                                writer.close( );
27                }
28                catch ( IOException e)
29                {
30                }
31     }
32	}
33}