ae.java
2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.zip.CRC32;
import java.util.zip.ZipException;
final class ae
{
static long a(File paramFile)
throws IOException
{
paramFile = new RandomAccessFile(paramFile, "r");
try
{
long l = a(paramFile, a(paramFile));
return l;
}
finally
{
paramFile.close();
}
}
private static long a(RandomAccessFile paramRandomAccessFile, ae.a parama)
throws IOException
{
CRC32 localCRC32 = new CRC32();
long l = parama.b;
paramRandomAccessFile.seek(parama.a);
int i = (int)Math.min(16384L, l);
parama = new byte['䀀'];
for (i = paramRandomAccessFile.read(parama, 0, i); i != -1; i = paramRandomAccessFile.read(parama, 0, (int)Math.min(16384L, l)))
{
localCRC32.update(parama, 0, i);
l -= i;
if (l == 0L) {
break;
}
}
return localCRC32.getValue();
}
private static ae.a a(RandomAccessFile paramRandomAccessFile)
throws IOException, ZipException
{
long l1 = 0L;
long l2 = paramRandomAccessFile.length() - 22L;
if (l2 < 0L) {
throw new ZipException("File too short to be a zip file: " + paramRandomAccessFile.length());
}
long l3 = l2 - 65536L;
if (l3 < 0L) {}
for (;;)
{
int i = Integer.reverseBytes(101010256);
do
{
paramRandomAccessFile.seek(l2);
if (paramRandomAccessFile.readInt() == i) {
break;
}
l3 = l2 - 1L;
l2 = l3;
} while (l3 >= l1);
throw new ZipException("End Of Central Directory signature not found");
paramRandomAccessFile.skipBytes(2);
paramRandomAccessFile.skipBytes(2);
paramRandomAccessFile.skipBytes(2);
paramRandomAccessFile.skipBytes(2);
ae.a locala = new ae.a();
locala.b = (Integer.reverseBytes(paramRandomAccessFile.readInt()) & 0xFFFFFFFF);
locala.a = (Integer.reverseBytes(paramRandomAccessFile.readInt()) & 0xFFFFFFFF);
return locala;
l1 = l3;
}
}
static final class a
{
long a;
long b;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/ae.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/