public class FileSystem extends Object
| Constructor and Description |
|---|
FileSystem() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeFileOutputStream(File file)
It remove file Stream from
OPEN_FILE_OUTPUT_STREAM and
close it. |
static void |
closeFileOutputStream(String fileName)
It remove file Stream from
OPEN_FILE_OUTPUT_STREAM and
close it. |
static void |
deleteFile(File file)
If any
OutputStream is opened for this fileName than removes it
from OPEN_FILE_OUTPUT_STREAM Open stream cache and
closes that stream. |
static void |
writeTo(File file,
byte[] data) |
public static void writeTo(File file, byte[] data) throws IOException
IOExceptionpublic static void deleteFile(File file)
OutputStream is opened for this fileName than removes it
from OPEN_FILE_OUTPUT_STREAM Open stream cache and
closes that stream. delete that file from storage location usingfile - file instance to be deletedpublic static void closeFileOutputStream(String fileName)
OPEN_FILE_OUTPUT_STREAM and
close it.fileName - stringpublic static void closeFileOutputStream(File file)
OPEN_FILE_OUTPUT_STREAM and
close it.file - FileCopyright © 2019. All rights reserved.