ParseOptions.java
2.38 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
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.internal.xmp.options;
import com.adobe.internal.xmp.options.Options;
public final class ParseOptions
extends Options {
public static final int REQUIRE_XMP_META = 1;
public static final int STRICT_ALIASING = 4;
public static final int FIX_CONTROL_CHARS = 8;
public static final int ACCEPT_LATIN_1 = 16;
public static final int OMIT_NORMALIZATION = 32;
public static final int DISALLOW_DOCTYPE = 64;
public ParseOptions() {
this.setOption(88, true);
}
public boolean getRequireXMPMeta() {
return this.getOption(1);
}
public ParseOptions setRequireXMPMeta(boolean value) {
this.setOption(1, value);
return this;
}
public boolean getStrictAliasing() {
return this.getOption(4);
}
public ParseOptions setStrictAliasing(boolean value) {
this.setOption(4, value);
return this;
}
public boolean getFixControlChars() {
return this.getOption(8);
}
public ParseOptions setFixControlChars(boolean value) {
this.setOption(8, value);
return this;
}
public boolean getAcceptLatin1() {
return this.getOption(16);
}
public ParseOptions setOmitNormalization(boolean value) {
this.setOption(32, value);
return this;
}
public boolean getOmitNormalization() {
return this.getOption(32);
}
public ParseOptions setDisallowDoctype(boolean value) {
this.setOption(64, value);
return this;
}
public boolean getDisallowDoctype() {
return this.getOption(64);
}
public ParseOptions setAcceptLatin1(boolean value) {
this.setOption(16, value);
return this;
}
protected String defineOptionName(int option) {
switch (option) {
case 1: {
return "REQUIRE_XMP_META";
}
case 4: {
return "STRICT_ALIASING";
}
case 8: {
return "FIX_CONTROL_CHARS";
}
case 16: {
return "ACCEPT_LATIN_1";
}
case 32: {
return "OMIT_NORMALIZATION";
}
case 64: {
return "DISALLOW_DOCTYPE";
}
}
return null;
}
protected int getValidOptions() {
return 125;
}
}