de.unido.ls5.eti.client
Class Filetools

java.lang.Object
  extended by de.unido.ls5.eti.client.Filetools

public class Filetools
extends Object

Helper Methods to handle files and streams Will probably removed in future and replaced by usage of commons-io

Rating red

Constructor Summary
Filetools()
           
 
Method Summary
static void streamToFile(InputStream is, File file)
          Writes the contents of an input stream into a file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filetools

public Filetools()
Method Detail

streamToFile

public static void streamToFile(InputStream is,
                                File file)
                         throws Exception
Writes the contents of an input stream into a file

Parameters:
is - the input stream to read from
file - the file to write to
Throws:
Exception - if something goes wrong