diff options
author | Kenny Root <kroot@google.com> | 2010-09-27 12:45:44 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-09-27 12:45:44 -0700 |
commit | 04a426f5b50a628fb73bc29b003b0e5bece17c27 (patch) | |
tree | bbd0ec001a909e516e60851857a68b8a9b136d4f | |
parent | d8691d73d158acd9ffc63748126e822afd656707 (diff) | |
parent | d63f7dbf5d30320e8fd4dd8056d245f7b1e818ba (diff) | |
download | frameworks_base-04a426f5b50a628fb73bc29b003b0e5bece17c27.zip frameworks_base-04a426f5b50a628fb73bc29b003b0e5bece17c27.tar.gz frameworks_base-04a426f5b50a628fb73bc29b003b0e5bece17c27.tar.bz2 |
Merge "Use buffered I/O during certificate parsing" into gingerbread
-rw-r--r-- | core/java/android/content/pm/PackageParser.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/content/pm/PackageParser.java b/core/java/android/content/pm/PackageParser.java index 1f21672..e853120 100644 --- a/core/java/android/content/pm/PackageParser.java +++ b/core/java/android/content/pm/PackageParser.java @@ -39,6 +39,7 @@ import android.util.TypedValue; import com.android.internal.util.XmlUtils; +import java.io.BufferedInputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; @@ -336,7 +337,7 @@ public class PackageParser { try { // We must read the stream for the JarEntry to retrieve // its certificates. - InputStream is = jarFile.getInputStream(je); + InputStream is = new BufferedInputStream(jarFile.getInputStream(je)); while (is.read(readBuffer, 0, readBuffer.length) != -1) { // not using } |