|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.stock.utils.FileUtils
public class FileUtils
The Class FileUtils.
| Method Summary | |
|---|---|
static java.io.File |
getUniqueFile(java.io.File file)
If file exists, generate a file with non existing file name (for example fileexist-1.jpg) |
static void |
writeInputStreamToFile(java.io.InputStream is,
java.io.File file)
Write content from input stream to the disk. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void writeInputStreamToFile(java.io.InputStream is,
java.io.File file)
is - input streamfile - file where data will be storedpublic static java.io.File getUniqueFile(java.io.File file)
file - file to rename
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||