mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
IO Write file from stream
This commit is contained in:
parent
5ed9a29f81
commit
53b7f33ec4
@ -327,6 +327,13 @@ public class IO {
|
||||
pw.close();
|
||||
}
|
||||
|
||||
public static void writeAll(File f, OutputStream c) throws IOException {
|
||||
f.getParentFile().mkdirs();
|
||||
FileInputStream in = new FileInputStream(f);
|
||||
IO.fullTransfer(in, c, 8192);
|
||||
in.close();
|
||||
}
|
||||
|
||||
public static String readAll(File f) throws IOException {
|
||||
FileReader fr;
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user