зеркало из https://github.com/mozilla/pjs.git
Bug 601023 - Remove binary component extraction code, r=blassey a=blocking-fennec/bustage fix
This commit is contained in:
Родитель
3787c5d006
Коммит
f4ab3a033a
|
@ -374,40 +374,6 @@ abstract public class GeckoApp
|
|||
unpackFile(zip, buf, entry, entry.getName());
|
||||
}
|
||||
}
|
||||
|
||||
ZipEntry componentsList = zip.getEntry("components/components.manifest");
|
||||
if (componentsList == null) {
|
||||
Log.i("GeckoAppJava", "Can't find components.manifest!");
|
||||
return;
|
||||
}
|
||||
|
||||
listStream = new BufferedInputStream(zip.getInputStream(componentsList));
|
||||
|
||||
StreamTokenizer tkn = new StreamTokenizer(new InputStreamReader(listStream));
|
||||
String line = "components/";
|
||||
int status;
|
||||
boolean addnext = false;
|
||||
tkn.eolIsSignificant(true);
|
||||
do {
|
||||
status = tkn.nextToken();
|
||||
switch (status) {
|
||||
case StreamTokenizer.TT_WORD:
|
||||
if (tkn.sval.equals("binary-component"))
|
||||
addnext = true;
|
||||
else if (addnext) {
|
||||
line += tkn.sval;
|
||||
addnext = false;
|
||||
}
|
||||
break;
|
||||
case StreamTokenizer.TT_NUMBER:
|
||||
break;
|
||||
case StreamTokenizer.TT_EOF:
|
||||
case StreamTokenizer.TT_EOL:
|
||||
unpackFile(zip, buf, null, line);
|
||||
line = "components/";
|
||||
break;
|
||||
}
|
||||
} while (status != StreamTokenizer.TT_EOF);
|
||||
}
|
||||
|
||||
private void unpackFile(ZipFile zip, byte[] buf, ZipEntry fileEntry,
|
||||
|
|
Загрузка…
Ссылка в новой задаче