From 607af348523b18209a12c95771eb81e423b6d740 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sun, 19 Feb 2017 15:37:14 -0500 Subject: [PATCH] missed wrapping this guy in a buffer --- core/src/processing/core/PApplet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 095f9816c..7606f2839 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -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); }