|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.utils.FileUtil
public class FileUtil
FileUtil class.
| Constructor Summary | |
|---|---|
FileUtil()
|
|
| Method Summary | |
|---|---|
static byte[] |
readFile(File file)
Reads entire binary file |
static byte[] |
readFile(URL url)
Reads entire binary file to a byte array |
static byte[] |
readStream(InputStream is)
Reads entire binary file to a byte array. |
static void |
writeFile(File file,
byte[] data)
Creates and writes a binary file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtil()
| Method Detail |
|---|
public static void writeFile(File file,
byte[] data)
throws IOException
file - filedata - data
IOException - on i/o problems
public static byte[] readFile(File file)
throws IOException
file - file
IOException - on i/o problems
public static byte[] readFile(URL url)
throws IOException
url - a URL object.
IOException - on i/o problems
public static byte[] readStream(InputStream is)
throws IOException
is - input stream
IOException - on i/o problems
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||