missed wrapping this guy in a buffer

This commit is contained in:
Ben Fry
2017-02-19 15:37:14 -05:00
parent 669d56a926
commit 607af34852
+2 -1
View File
@@ -7094,6 +7094,7 @@ public class PApplet implements PConstants {
return null;
}
/**
* @nowebref
*/
@@ -7102,7 +7103,7 @@ public class PApplet implements PConstants {
throw new IllegalArgumentException("File passed to createInput() was null");
}
try {
InputStream input = new FileInputStream(file);
InputStream input = new BufferedInputStream(new FileInputStream(file));
if (file.getName().toLowerCase().endsWith(".gz")) {
return new GZIPInputStream(input);
}