am 04a426f5: Merge "Use buffered I/O during certificate parsing" into gingerbread
Merge commit '04a426f5b50a628fb73bc29b003b0e5bece17c27' into gingerbread-plus-aosp * commit '04a426f5b50a628fb73bc29b003b0e5bece17c27': Use buffered I/O during certificate parsing
This commit is contained in:
@@ -39,6 +39,7 @@ import android.util.TypedValue;
|
|||||||
|
|
||||||
import com.android.internal.util.XmlUtils;
|
import com.android.internal.util.XmlUtils;
|
||||||
|
|
||||||
|
import java.io.BufferedInputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@@ -336,7 +337,7 @@ public class PackageParser {
|
|||||||
try {
|
try {
|
||||||
// We must read the stream for the JarEntry to retrieve
|
// We must read the stream for the JarEntry to retrieve
|
||||||
// its certificates.
|
// its certificates.
|
||||||
InputStream is = jarFile.getInputStream(je);
|
InputStream is = new BufferedInputStream(jarFile.getInputStream(je));
|
||||||
while (is.read(readBuffer, 0, readBuffer.length) != -1) {
|
while (is.read(readBuffer, 0, readBuffer.length) != -1) {
|
||||||
// not using
|
// not using
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user