mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 22:32:04 +00:00
IO Write file from stream
This commit is contained in:
@@ -327,6 +327,13 @@ public class IO {
|
|||||||
pw.close();
|
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 {
|
public static String readAll(File f) throws IOException {
|
||||||
FileReader fr;
|
FileReader fr;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user