com.github.dandelion.datatables.core.util
Class FileUtils

java.lang.Object
  extended by com.github.dandelion.datatables.core.util.FileUtils

public class FileUtils
extends Object

Helper class used to extract content from different type of input.

Author:
Thibault Duchateau

Constructor Summary
FileUtils()
           
 
Method Summary
static String getFileContentFromClasspath(String pathToFile)
          TODO
static String getFileContentFromWebapp(String pathToFile)
          TODO
static InputStream getFileFromClasspath(String pathToFile)
          TODO
static InputStream getFileFromWebapp(String pathToFile)
          TODO
static String toString(InputStream input)
          TODO
 
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

getFileFromWebapp

public static InputStream getFileFromWebapp(String pathToFile)
                                     throws FileNotFoundException
TODO

Parameters:
pathToFile -
Returns:
Throws:
FileNotFoundException

getFileFromClasspath

public static InputStream getFileFromClasspath(String pathToFile)
TODO

Parameters:
pathToFile -
Returns:

getFileContentFromClasspath

public static String getFileContentFromClasspath(String pathToFile)
                                          throws IOException
TODO

Parameters:
pathToFile -
Returns:
Throws:
IOException

getFileContentFromWebapp

public static String getFileContentFromWebapp(String pathToFile)
                                       throws IOException
TODO

Parameters:
pathToFile -
Returns:
Throws:
IOException

toString

public static String toString(InputStream input)
                       throws IOException
TODO

Parameters:
input -
Returns:
Throws:
IOException


Copyright © 2013–2014 Dandelion Project. All rights reserved.