re.java
2.11 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import com.google.common.base.Preconditions;
import com.google.common.io.ByteSource;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import javax.annotation.Nullable;
public final class re
extends InputStream
{
private Iterator<? extends ByteSource> a;
private InputStream b;
public re(Iterator<? extends ByteSource> paramIterator)
throws IOException
{
this.a = ((Iterator)Preconditions.checkNotNull(paramIterator));
a();
}
private void a()
throws IOException
{
close();
if (this.a.hasNext()) {
this.b = ((ByteSource)this.a.next()).openStream();
}
}
public final int available()
throws IOException
{
if (this.b == null) {
return 0;
}
return this.b.available();
}
public final void close()
throws IOException
{
if (this.b != null) {}
try
{
this.b.close();
return;
}
finally
{
this.b = null;
}
}
public final boolean markSupported()
{
return false;
}
public final int read()
throws IOException
{
int i;
for (;;)
{
if (this.b == null) {
return -1;
}
i = this.b.read();
if (i != -1) {
break;
}
a();
}
return i;
}
public final int read(@Nullable byte[] paramArrayOfByte, int paramInt1, int paramInt2)
throws IOException
{
int i;
for (;;)
{
if (this.b == null) {
return -1;
}
i = this.b.read(paramArrayOfByte, paramInt1, paramInt2);
if (i != -1) {
break;
}
a();
}
return i;
}
public final long skip(long paramLong)
throws IOException
{
long l1;
if ((this.b == null) || (paramLong <= 0L)) {
l1 = 0L;
}
long l2;
do
{
return l1;
l2 = this.b.skip(paramLong);
l1 = l2;
} while (l2 != 0L);
if (read() == -1) {
return 0L;
}
return this.b.skip(paramLong - 1L) + 1L;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/re.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/