ubiware.util
Class StreamingUtils

java.lang.Object
  extended by ubiware.util.StreamingUtils

public class StreamingUtils
extends java.lang.Object

Utilities which make working with byte and character streams more convenient. 18.3.2010

Author:
Michael Cochez for UBIWARE project

Constructor Summary
StreamingUtils()
           
 
Method Summary
static java.lang.String getInputFromFile(java.io.File file)
           
static void sendFileToOutputStream(java.io.File file, java.io.OutputStream os)
          Send a file to an outputstream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamingUtils

public StreamingUtils()
Method Detail

sendFileToOutputStream

public static void sendFileToOutputStream(java.io.File file,
                                          java.io.OutputStream os)
                                   throws java.io.FileNotFoundException,
                                          java.io.IOException
Send a file to an outputstream

Parameters:
file - The File to be send to the OutputStream
os - The OutputStream
Throws:
java.io.FileNotFoundException - If the File could not be found
java.io.IOException - If an IOException occurred.

getInputFromFile

public static java.lang.String getInputFromFile(java.io.File file)
                                         throws java.io.IOException
Throws:
java.io.IOException