CosBoolean.java
1.53 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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.internal.io.stream.OutputByteStream
*/
package com.adobe.internal.pdftoolkit.core.cos;
import com.adobe.internal.io.stream.OutputByteStream;
import com.adobe.internal.pdftoolkit.core.cos.CosDocument;
import com.adobe.internal.pdftoolkit.core.cos.CosObject;
import com.adobe.internal.pdftoolkit.core.cos.CosObjectInfo;
import com.adobe.internal.pdftoolkit.core.cos.CosScalar;
import com.adobe.internal.pdftoolkit.core.util.StringOps;
import java.io.IOException;
public class CosBoolean
extends CosScalar {
private Boolean mValue;
CosBoolean(CosDocument doc, boolean value, CosObjectInfo info) {
super(doc, info);
this.mValue = value;
}
CosBoolean(CosDocument doc, Boolean value, CosObjectInfo info) {
super(doc, info);
this.mValue = value;
}
public int getType() {
return 2;
}
public boolean booleanValue() {
return this.mValue;
}
public Object getValue() {
return this.mValue;
}
void writeOut(OutputByteStream outStream, boolean inString, boolean inDebugMode) throws IOException {
outStream.write(StringOps.toByteArray(this.mValue.toString()));
}
public boolean equals(CosObject value) {
if (!(value instanceof CosBoolean) || value.getDocument() != this.getDocument()) {
return false;
}
if (value == this) {
return true;
}
return value.booleanValue() == this.booleanValue();
}
}