_DataBufferStub.java
8.11 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.service;
import com.adobe.service.BufDataHelper;
import com.adobe.service.DataBuffer;
import com.adobe.service.DataBufferOperations;
import org.omg.CORBA.UNKNOWN;
import org.omg.CORBA.portable.*;
public class _DataBufferStub
extends ObjectImpl
implements DataBuffer {
private String[] ids = new String[]{"IDL:com/adobe/service/DataBuffer:1.0"};
public static final Class _opsClass = DataBufferOperations.class;
public String[] _ids() {
return this.ids;
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
public String getContentType() {
while (!this._is_local()) {
Object var6_6;
InputStream _is = null;
try {
String string;
try {
String _result;
OutputStream _os = this._request("getContentType", true);
_is = this._invoke(_os);
string = _result = _is.read_string();
var6_6 = null;
}
catch (RemarshalException _rx) {
var6_6 = null;
this._releaseReply(_is);
continue;
}
catch (ApplicationException _ax) {
String _id = _ax.getId();
throw new RuntimeException("Unexpected exception " + _id);
}
this._releaseReply(_is);
return string;
}
catch (Throwable var5_11) {
var6_6 = null;
this._releaseReply(_is);
throw var5_11;
}
}
ServantObject _so = this._servant_preinvoke("getContentType", _opsClass);
if (_so == null) {
throw new UNKNOWN("local invocations not supported!");
}
DataBufferOperations _localServant = (DataBufferOperations)_so.servant;
try {
String _result = _localServant.getContentType();
Object var8_12 = null;
this._servant_postinvoke(_so);
return _result;
}
catch (Throwable var7_14) {
Object var8_13 = null;
this._servant_postinvoke(_so);
throw var7_14;
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
public void setContentType(String contentType) {
while (!this._is_local()) {
Object var6_7;
InputStream _is = null;
try {
try {
OutputStream _os = this._request("setContentType", true);
_os.write_string(contentType);
_is = this._invoke(_os);
var6_7 = null;
this._releaseReply(_is);
return;
}
catch (RemarshalException _rx) {
var6_7 = null;
this._releaseReply(_is);
continue;
}
catch (ApplicationException _ax) {
String _id = _ax.getId();
throw new RuntimeException("Unexpected exception " + _id);
}
}
catch (Throwable var5_9) {
var6_7 = null;
this._releaseReply(_is);
throw var5_9;
}
}
ServantObject _so = this._servant_preinvoke("setContentType", _opsClass);
if (_so == null) {
throw new UNKNOWN("local invocations not supported!");
}
DataBufferOperations _localServant = (DataBufferOperations)_so.servant;
try {
_localServant.setContentType(contentType);
Object var8_10 = null;
this._servant_postinvoke(_so);
return;
}
catch (Throwable var7_12) {
Object var8_11 = null;
this._servant_postinvoke(_so);
throw var7_12;
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
public byte[] getBytes(long pos, long nBytes) {
while (!this._is_local()) {
Object var10_8;
InputStream _is = null;
try {
byte[] arrby;
try {
byte[] _result;
OutputStream _os = this._request("getBytes", true);
_os.write_longlong(pos);
_os.write_longlong(nBytes);
_is = this._invoke(_os);
arrby = _result = BufDataHelper.read(_is);
var10_8 = null;
}
catch (RemarshalException _rx) {
var10_8 = null;
this._releaseReply(_is);
continue;
}
catch (ApplicationException _ax) {
String _id = _ax.getId();
throw new RuntimeException("Unexpected exception " + _id);
}
this._releaseReply(_is);
return arrby;
}
catch (Throwable var9_13) {
var10_8 = null;
this._releaseReply(_is);
throw var9_13;
}
}
ServantObject _so = this._servant_preinvoke("getBytes", _opsClass);
if (_so == null) {
throw new UNKNOWN("local invocations not supported!");
}
DataBufferOperations _localServant = (DataBufferOperations)_so.servant;
try {
byte[] _result = _localServant.getBytes(pos, nBytes);
Object var12_14 = null;
this._servant_postinvoke(_so);
return _result;
}
catch (Throwable var11_16) {
Object var12_15 = null;
this._servant_postinvoke(_so);
throw var11_16;
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
public long getBufLength() {
while (!this._is_local()) {
Object var8_6;
InputStream _is = null;
try {
long l;
try {
long _result;
OutputStream _os = this._request("getBufLength", true);
_is = this._invoke(_os);
l = _result = _is.read_longlong();
var8_6 = null;
}
catch (RemarshalException _rx) {
var8_6 = null;
this._releaseReply(_is);
continue;
}
catch (ApplicationException _ax) {
String _id = _ax.getId();
throw new RuntimeException("Unexpected exception " + _id);
}
this._releaseReply(_is);
return l;
}
catch (Throwable var7_11) {
var8_6 = null;
this._releaseReply(_is);
throw var7_11;
}
}
ServantObject _so = this._servant_preinvoke("getBufLength", _opsClass);
if (_so == null) {
throw new UNKNOWN("local invocations not supported!");
}
DataBufferOperations _localServant = (DataBufferOperations)_so.servant;
try {
long _result = _localServant.getBufLength();
Object var10_12 = null;
this._servant_postinvoke(_so);
return _result;
}
catch (Throwable var9_14) {
Object var10_13 = null;
this._servant_postinvoke(_so);
throw var9_14;
}
}
}