ByteWriterFactory.java
3.48 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
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.internal.io;
import com.adobe.internal.io.ByteWriter;
import java.io.IOException;
public interface ByteWriterFactory {
public ByteWriter getByteWriter(Longevity var1, EncryptionStatus var2, Fixed var3, long var4, boolean var6) throws IOException;
public ByteWriter[] getByteWriter(Longevity var1, EncryptionStatus var2, Fixed var3, long[] var4, boolean var5) throws IOException;
public void closeByteWriter(ByteWriter var1) throws IOException;
public void closeFactory() throws IOException;
public static class EncryptionStatus {
private final int id;
private final String name;
public static final EncryptionStatus CLEAR = new EncryptionStatus(0, "CLEAR");
public static final EncryptionStatus ENCRYPTED = new EncryptionStatus(1, "ENCRYPTED");
public static final EncryptionStatus DECRYPTED = new EncryptionStatus(1, "DECRYPTED");
private static final EncryptionStatus[] allValues = new EncryptionStatus[]{CLEAR, ENCRYPTED, DECRYPTED};
private EncryptionStatus(int id, String name) {
this.id = id;
this.name = name.intern();
}
public String name() {
return this.name;
}
public static EncryptionStatus parse(String s) {
for (int i = 0; i < allValues.length; ++i) {
if (EncryptionStatus.allValues[i].name.compareToIgnoreCase(s) != 0) continue;
return allValues[i];
}
return null;
}
public int getId() {
return this.id;
}
}
public static class Fixed {
private final int id;
private final String name;
public static final Fixed FIXED = new Fixed(0, "FIXED");
public static final Fixed GROWABLE = new Fixed(1, "GROWABLE");
private static final Fixed[] allValues = new Fixed[]{FIXED, GROWABLE};
private Fixed(int id, String name) {
this.id = id;
this.name = name.intern();
}
public String name() {
return this.name;
}
public static Fixed parse(String s) {
for (int i = 0; i < allValues.length; ++i) {
if (Fixed.allValues[i].name.compareToIgnoreCase(s) != 0) continue;
return allValues[i];
}
return null;
}
public int getId() {
return this.id;
}
}
public static class Longevity {
private final int id;
private final String name;
public static final Longevity TEMPORARY = new Longevity(0, "TEMPORARY");
public static final Longevity SHORT = new Longevity(1, "SHORT");
public static final Longevity LONG = new Longevity(2, "LONG");
public static final Longevity PERMANENT = new Longevity(3, "PERMANENT");
private static final Longevity[] allValues = new Longevity[]{TEMPORARY, SHORT, LONG, PERMANENT};
private Longevity(int id1, String name) {
this.id = id1;
this.name = name.intern();
}
public String name() {
return this.name;
}
public static Longevity parse(String s) {
for (int i = 0; i < allValues.length; ++i) {
if (Longevity.allValues[i].name.compareToIgnoreCase(s) != 0) continue;
return allValues[i];
}
return null;
}
public int getId() {
return this.id;
}
}
}