|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.dandelion.datatables.core.util.FileUtils
public class FileUtils
Helper class used to extract content from different type of input.
| 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 |
|---|
public FileUtils()
| Method Detail |
|---|
public static InputStream getFileFromWebapp(String pathToFile)
throws FileNotFoundException
pathToFile -
FileNotFoundExceptionpublic static InputStream getFileFromClasspath(String pathToFile)
pathToFile -
public static String getFileContentFromClasspath(String pathToFile)
throws IOException
pathToFile -
IOException
public static String getFileContentFromWebapp(String pathToFile)
throws IOException
pathToFile -
IOException
public static String toString(InputStream input)
throws IOException
input -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||