|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fusesource.fabric.utils.Files
public class Files
| Constructor Summary | |
|---|---|
Files()
|
|
| Method Summary | |
|---|---|
static void |
copy(java.io.File source,
java.io.File target)
Copy the source File to the target File. |
static void |
copy(java.io.InputStream is,
java.io.OutputStream os)
Copy the InputStream to the OutputStream. |
static java.io.File |
createTempFile()
Creates a temporary file. |
static java.lang.String |
toString(java.io.File file)
Reads a File and returns a . |
static java.lang.String |
toString(java.io.File file,
java.nio.charset.Charset charset)
Reads a File and returns a . |
static void |
writeToFile(java.io.File file,
java.lang.String content,
java.nio.charset.Charset charset)
Writes String content to File. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Files()
| Method Detail |
|---|
public static java.io.File createTempFile()
throws java.io.IOException
java.io.IOException
public static java.lang.String toString(java.io.File file,
java.nio.charset.Charset charset)
throws java.io.IOException
File and returns a .
file - charset -
java.io.IOException
public static java.lang.String toString(java.io.File file)
throws java.io.IOException
File and returns a .
file -
java.io.IOException
public static void writeToFile(java.io.File file,
java.lang.String content,
java.nio.charset.Charset charset)
throws java.io.IOException
String content to File.
file - content - charset -
java.io.IOException
public static void copy(java.io.File source,
java.io.File target)
throws java.io.IOException
File to the target File.
source - target -
java.io.IOException
public static void copy(java.io.InputStream is,
java.io.OutputStream os)
throws java.io.IOException
InputStream to the OutputStream.
is - os -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||