mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-05 17:07:21 +00:00
Searching in browsers cache (Chrome, Firefox)
This commit is contained in:
@@ -25,6 +25,7 @@ import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.ObjectOutputStream;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
@@ -560,4 +561,14 @@ public class Helper {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void saveStream(InputStream is,File output) throws IOException {
|
||||
byte[] buf=new byte[1024];
|
||||
int cnt;
|
||||
try (FileOutputStream fos = new FileOutputStream(output)) {
|
||||
while((cnt=is.read(buf))>0){
|
||||
fos.write(buf,0,cnt);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user