public final class FileHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
loadFile(File file)
Loads a file
|
static byte[] |
loadFile(String path)
Loads a file
|
static void |
writeFile(File file,
byte[] data)
Writes data to a file
|
public static byte[] loadFile(String path) throws IOException
path - IOExceptionpublic static byte[] loadFile(File file) throws IOException
file - IOExceptionpublic static void writeFile(File file, byte[] data) throws IOException
file - data - IOExceptionCopyright © 2021. All rights reserved.