Repository navigation
Expand file tree
/
Copy pathaj.java
More file actions
74 lines (63 loc) · 1.49 KB
/
Copy pathaj.java
File metadata and controls
74 lines (63 loc) · 1.49 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
import java.io.InputStream;
final class aj extends InputStream {
private byte[] a;
private int b;
private final a c;
private aj(a var1) {
this.c = var1;
}
public int read() {
if (this.a == null) {
return -1;
} else if (this.b >= this.a.length) {
this.a = null;
return -1;
} else {
return this.a[this.b++] & 255;
}
}
public int available() {
return this.a == null ? 0 : this.a.length - this.b;
}
public void close() {
this.a = null;
}
public int read(byte[] var1) {
return this.read(var1, 0, var1.length);
}
public int read(byte[] var1, int var2, int var3) {
if (this.a == null) {
return -1;
} else if (this.b >= this.a.length) {
this.a = null;
return -1;
} else {
int var4 = Math.min(this.available(), var3);
System.arraycopy(this.a, this.b, var1, var2, var4);
this.b += var4;
return var4;
}
}
public long skip(long var1) {
if (this.a == null) {
return -1L;
} else if (this.b >= this.a.length) {
this.a = null;
return 0L;
} else {
int var3 = (int)Math.min((long)this.available(), var1);
this.b += var3;
return (long)var3;
}
}
private void a(byte[] var1) {
this.a = var1;
this.b = 0;
}
aj(a var1, bn var2) {
this(var1);
}
static void a(aj var0, byte[] var1) {
var0.a(var1);
}
}