ClasspathResource.java
7.62 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.forms.common.utils.URIUtils
* com.adobe.forms.rm.impl.ClasspathResource$$anonfun
* com.adobe.forms.rm.impl.ClasspathResource$$anonfun$lastModifiedTime
* com.adobe.forms.rm.impl.ClasspathResource$$anonfun$source
* scala.Function0
* scala.Function1
* scala.Option
* scala.ScalaObject
* scala.Some
* scala.collection.immutable.Map
* scala.reflect.ScalaSignature
* scala.runtime.AbstractFunction0
* scala.runtime.AbstractFunction0$mcJ
* scala.runtime.AbstractFunction0$mcJ$sp
* scala.runtime.AbstractFunction1
* scala.runtime.BoxesRunTime
*/
package com.adobe.forms.rm.impl;
import com.adobe.forms.common.utils.URIUtils;
import com.adobe.forms.logging.PerfLogger$;
import com.adobe.forms.rm.Resource$;
import com.adobe.forms.rm.URIResource;
import com.adobe.forms.rm.impl.ClasspathResource$;
import java.io.InputStream;
import java.net.URI;
import scala.Function0;
import scala.Function1;
import scala.Option;
import scala.ScalaObject;
import scala.Some;
import scala.collection.immutable.Map;
import scala.reflect.ScalaSignature;
import scala.runtime.AbstractFunction0;
import scala.runtime.AbstractFunction1;
import scala.runtime.BoxesRunTime;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
@ScalaSignature(bytes="\u0006\u0001\u0005\u0005a\u0001B\u0001\u0003\u00015\u0011\u0011c\u00117bgN\u0004\u0018\r\u001e5SKN|WO]2f\u0015\t\u0019A!\u0001\u0003j[Bd'BA\u0003\u0007\u0003\t\u0011XN\u0003\u0002\b\u0011\u0005)am\u001c:ng*\u0011\u0011BC\u0001\u0006C\u0012|'-\u001a\u0006\u0002\u0017\u0005\u00191m\\7\u0004\u0001M\u0019\u0001A\u0004\n\u0011\u0005=\u0001R\"\u0001\u0003\n\u0005E!!aC+S\u0013J+7o\\;sG\u0016\u0004\"a\u0005\f\u000e\u0003QQ\u0011!F\u0001\u0006g\u000e\fG.Y\u0005\u0003/Q\u00111bU2bY\u0006|%M[3di\"A\u0011\u0004\u0001B\u0001B\u0003%!$A\u0004d_:$XM\u001c;\u0011\u0005MY\u0012B\u0001\u000f\u0015\u0005\u0019\te.\u001f*fM\"Aa\u0004\u0001B\u0001B\u0003%q$A\u0004d_:$X\r\u001f;\u0011\u0007M\u0001#%\u0003\u0002\")\t1q\n\u001d;j_:\u0004\"a\t\u0014\u000f\u0005M!\u0013BA\u0013\u0015\u0003\u0019\u0001&/\u001a3fM&\u0011q\u0005\u000b\u0002\u0007'R\u0014\u0018N\\4\u000b\u0005\u0015\"\u0002\u0002\u0003\u0016\u0001\u0005\u0003\u0005\u000b\u0011B\u0016\u0002\u00075\f\u0007\u000f\u0005\u0003$Y\tr\u0013BA\u0017)\u0005\ri\u0015\r\u001d\t\u0003'=J!\u0001\r\u000b\u0003\u0007\u0005s\u0017\u0010C\u00033\u0001\u0011\u00051'\u0001\u0004=S:LGO\u0010\u000b\u0005iY:\u0004\b\u0005\u00026\u00015\t!\u0001C\u0003\u001ac\u0001\u0007!\u0004C\u0004\u001fcA\u0005\t\u0019A\u0010\t\u000f)\n\u0004\u0013!a\u0001W!9!\b\u0001b\u0001\n\u0013Y\u0014aA;sSV\tA\b\u0005\u0002>\u00056\taH\u0003\u0002@\u0001\u0006\u0019a.\u001a;\u000b\u0003\u0005\u000bAA[1wC&\u00111I\u0010\u0002\u0004+JK\u0005BB#\u0001A\u0003%A(\u0001\u0003ve&\u0004\u0003\u0002C$\u0001\u0011\u000b\u0007I\u0011\u0001%\u0002\rM|WO]2f+\u0005I\u0005cA\nK\u0019&\u00111\n\u0006\u0002\u0006\u0003J\u0014\u0018-\u001f\t\u0003'5K!A\u0014\u000b\u0003\t\tKH/\u001a\u0005\t!\u0002A\t\u0011)Q\u0005\u0013\u000691o\\;sG\u0016\u0004\u0003\u0002\u0003*\u0001\u0011\u000b\u0007I\u0011I*\u0002\rI,7oS3z+\u0005y\u0002\u0002C+\u0001\u0011\u0003\u0005\u000b\u0015B\u0010\u0002\u000fI,7oS3zA!)q\u000b\u0001C!1\u0006\u0001B.Y:u\u001b>$\u0017NZ5fIRKW.\u001a\u000b\u00023B\u00111CW\u0005\u00037R\u0011A\u0001T8oO\")Q\f\u0001C!=\u0006I\u0011n\u001d+skN$X\rZ\u000b\u0002?B\u00111\u0003Y\u0005\u0003CR\u0011qAQ8pY\u0016\fgnB\u0004d\u0005\u0005\u0005\tR\u00013\u0002#\rc\u0017m]:qCRD'+Z:pkJ\u001cW\r\u0005\u00026K\u001a9\u0011AAA\u0001\u0012\u000b17cA3h%A\u0011\u0001n[\u0007\u0002S*\u0011!\u000eQ\u0001\u0005Y\u0006tw-\u0003\u0002mS\n1qJ\u00196fGRDQAM3\u0005\u00029$\u0012\u0001\u001a\u0005\ba\u0016\f\n\u0011\"\u0001r\u00039Ig.\u001b;%I\u00164\u0017-\u001e7uII*\u0012A\u001d\u0016\u0003?M\\\u0013\u0001\u001e\t\u0003kjl\u0011A\u001e\u0006\u0003ob\f\u0011\"\u001e8dQ\u0016\u001c7.\u001a3\u000b\u0005e$\u0012AC1o]>$\u0018\r^5p]&\u00111P\u001e\u0002\u0012k:\u001c\u0007.Z2lK\u00124\u0016M]5b]\u000e,\u0007bB?f#\u0003%\tA`\u0001\u000fS:LG\u000f\n3fM\u0006,H\u000e\u001e\u00134+\u0005y(FA\u0016t\u0001")
public class ClasspathResource
extends URIResource
implements ScalaObject {
private final URI com$adobe$forms$rm$impl$ClasspathResource$$uri;
private byte[] source;
private Option<String> resKey;
public volatile int bitmap$0;
public static final Map init$default$3() {
return ClasspathResource$.MODULE$.init$default$3();
}
public static final Option init$default$2() {
return ClasspathResource$.MODULE$.init$default$2();
}
public final URI com$adobe$forms$rm$impl$ClasspathResource$$uri() {
return this.com$adobe$forms$rm$impl$ClasspathResource$$uri;
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
@Override
public byte[] source() {
if ((this.bitmap$0 & 1) != 0) return this.source;
ClasspathResource classpathResource = this;
synchronized (classpathResource) {
if ((this.bitmap$0 & 1) == 0) {
this.source = (byte[])Resource$.MODULE$.using(this.getClass().getResourceAsStream(this.com$adobe$forms$rm$impl$ClasspathResource$$uri().getPath()), new scala.Serializable(this){
public static final long serialVersionUID;
public static {
long l = $anonfun$source$1.serialVersionUID = 0;
}
public final byte[] apply(InputStream inputStream) {
return Resource$.MODULE$.enrichInputStream(inputStream).asByteArray();
}
});
this.bitmap$0 |= 1;
}
return this.source;
}
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
@Override
public Option<String> resKey() {
if ((this.bitmap$0 & 2) != 0) return this.resKey;
ClasspathResource classpathResource = this;
synchronized (classpathResource) {
if ((this.bitmap$0 & 2) == 0) {
this.resKey = new Some((Object)this.com$adobe$forms$rm$impl$ClasspathResource$$uri().toString());
this.bitmap$0 |= 2;
}
return this.resKey;
}
}
@Override
public long lastModifiedTime() {
return BoxesRunTime.unboxToLong(PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
public static final long serialVersionUID;
public static {
long l = $anonfun$lastModifiedTime$2.serialVersionUID = 0;
}
public final String apply() {
return "ClasspathResource.lastModifiedTime";
}
}, new scala.Serializable(this){
public static final long serialVersionUID;
private final ClasspathResource $outer;
public static {
long l = $anonfun$lastModifiedTime$1.serialVersionUID = 0;
}
public final long apply() {
return this.apply$mcJ$sp();
}
public long apply$mcJ$sp() {
return this.$outer.getClass().getResource(this.$outer.com$adobe$forms$rm$impl$ClasspathResource$$uri().getPath()).openConnection().getLastModified();
}
}));
}
@Override
public boolean isTrusted() {
return true;
}
public ClasspathResource(Object content, Option<String> context, Map<String, Object> map) {
super(content, context, map);
this.com$adobe$forms$rm$impl$ClasspathResource$$uri = URIUtils.getUri((String)this.absPath(), (boolean)false);
}
}