de.jw.cloud42.webapp.utils
Class FileUtils

java.lang.Object
  extended by de.jw.cloud42.webapp.utils.FileUtils

public class FileUtils
extends java.lang.Object

Contains some convenience functions for handling file data.

Author:
fbitzer

Constructor Summary
FileUtils()
           
 
Method Summary
static java.lang.String extractFilename(java.lang.String path)
           
static byte[] getBytesFromFile(java.io.File file)
          Returns the contents of the file in a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

getBytesFromFile

public static byte[] getBytesFromFile(java.io.File file)
                               throws java.io.IOException
Returns the contents of the file in a byte array. Source: http://www.exampledepot.com/egs/java.io/File2ByteArray.html

Parameters:
file -
Returns:
Throws:
java.io.IOException

extractFilename

public static java.lang.String extractFilename(java.lang.String path)


Copyright © 2010 just works! Software. All Rights Reserved.